Changeset 3eeeb88 for libcfa


Ignore:
Timestamp:
Jun 1, 2023, 12:43:51 PM (11 months ago)
Author:
caparsons <caparson@…>
Branches:
ast-experimental, master
Children:
760c88c
Parents:
e4a2198
Message:

added utility functions for channel exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/channel.hfa

    re4a2198 r3eeeb88  
    5050};
    5151vtable(channel_closed) channel_closed_vt;
     52
     53static inline bool is_insert( channel_closed & e ) { return elem != 0p; }
     54static inline bool is_remove( channel_closed & e ) { return elem == 0p; }
    5255
    5356// #define CHAN_STATS // define this to get channel stats printed in dtor
Note: See TracChangeset for help on using the changeset viewer.