Changes in / [2c24971:9eb7f07c]


Ignore:
Files:
4 deleted
2 edited

Legend:

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

    r2c24971 r9eb7f07c  
    7373    if ( size != 0 ) delete( buffer );
    7474}
    75 static inline size_t get_count( channel(T) & chan ) with(chan) { return __atomic_load_n( &count, __ATOMIC_SEQ_CST); }
     75static inline size_t get_count( channel(T) & chan ) with(chan) { return count; }
    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; }
  • tests/concurrent/waituntil/one_chan.cfa

    r2c24971 r9eb7f07c  
    3737        printf("waiting for empty channels\n");
    3838        LINE_COUNTER = 3;
    39         // size_t C_count = get_count( C );
    40         // LINE_COUNTER = 5;
    41         // while( C_count > 0 ) {
    42         //     C_count = get_count( C );
    43         // }
     39        size_t C_count = get_count( C );
     40        LINE_COUNTER = 5;
     41        while( C_count > 0 ) {
     42            C_count = get_count( C );
     43        }
    4444        LINE_COUNTER = 7;
    4545        printf("sending sentinels\n");
     
    5050        LINE_COUNTER = 17;
    5151    }
    52     assert(get_count( C ) == 0);
    5352    LINE_COUNTER = 19;
    5453    if ( total != globalTotal )
Note: See TracChangeset for help on using the changeset viewer.