Changeset 4dd10fb
- Timestamp:
- May 12, 2023, 2:19:16 PM (19 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 386fb57, e2887a9
- Parents:
- 01de470
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/channel.hfa
r01de470 r4dd10fb 74 74 } 75 75 static inline size_t get_count( channel(T) & chan ) with(chan) { return __atomic_load_n( &count, __ATOMIC_SEQ_CST); } 76 static inline size_t get_size( channel(T) & chan ) with(chan) { return size; }76 static inline size_t get_size( channel(T) & chan ) with(chan) { return __atomic_load_n( &size, __ATOMIC_SEQ_CST); } 77 77 static inline bool has_waiters( channel(T) & chan ) with(chan) { return !cons`isEmpty || !prods`isEmpty; } 78 78 static inline bool has_waiting_consumers( channel(T) & chan ) with(chan) { return !cons`isEmpty; }
Note: See TracChangeset
for help on using the changeset viewer.