Ignore:
Timestamp:
May 11, 2023, 8:28:12 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
8fa3b660
Parents:
9eb7f07c (diff), 7b53bfd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

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

    r9eb7f07c r2c24971  
    7373    if ( size != 0 ) delete( buffer );
    7474}
    75 static inline size_t get_count( channel(T) & chan ) with(chan) { return count; }
     75static inline size_t get_count( channel(T) & chan ) with(chan) { return __atomic_load_n( &count, __ATOMIC_SEQ_CST); }
    7676static inline size_t get_size( channel(T) & chan ) with(chan) { return size; }
    7777static inline bool has_waiters( channel(T) & chan ) with(chan) { return !cons`isEmpty || !prods`isEmpty; }
Note: See TracChangeset for help on using the changeset viewer.