Ignore:
Timestamp:
Jul 17, 2023, 1:46:48 PM (12 months ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
9cb2742
Parents:
a0b59ed
Message:

cleaned up a waituntil test and changed a channel test to use go-style operators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrency/channels/daisy_chain.cfa

    ra0b59ed rc2c1717  
    1919void main(Task & this) {
    2020    size_t runs = 0;
     21    int token = 0;
    2122    try{
    2223        for ( ;; ) {
    23             remove( *chain );
    24             insert( *chain, 0 );
     24            token << *chain;
     25            token >> *chain;
    2526            runs++;
    2627        }
     
    5960    Channel chainChan{ 1 };
    6061
    61     insert( chainChan, 0 );
     62    ((int)0) >> chainChan;
    6263
    6364    chain = &chainChan;   
Note: See TracChangeset for help on using the changeset viewer.