Changeset c5a2c96 for libcfa/src/concurrency
- Timestamp:
- May 11, 2023, 1:04:25 PM (19 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 7b53bfd
- Parents:
- 187570f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/channel.hfa
r187570f rc5a2c96 73 73 if ( size != 0 ) delete( buffer ); 74 74 } 75 static inline size_t get_count( channel(T) & chan ) with(chan) { return count; }75 static inline size_t get_count( channel(T) & chan ) with(chan) { return __atomic_load_n( &count, __ATOMIC_SEQ_CST); } 76 76 static inline size_t get_size( channel(T) & chan ) with(chan) { return size; } 77 77 static inline bool has_waiters( channel(T) & chan ) with(chan) { return !cons`isEmpty || !prods`isEmpty; }
Note: See TracChangeset
for help on using the changeset viewer.