Changeset c2c1717


Ignore:
Timestamp:
Jul 17, 2023, 1:46:48 PM (10 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

Location:
tests/concurrency
Files:
2 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;   
  • tests/concurrency/waituntil/repeat_close.cfa

    ra0b59ed rc2c1717  
    2626}
    2727
    28 
    29 thread Consumer {};
     28thread Consumer {};
    3029void main( Consumer & this ) {
    3130    long long int in, A_removes = 0, B_removes = 0, C_removes = 0, D_removes = 0, E_removes = 0, F_removes = 0;
     
    9392        {
    9493            Producer p[ num_thds / 2 ];
    95             Consumer c[ 1 ];
     94            Consumer c[ num_thds / 2 ];
    9695            sleep(time`s);
    9796            close(A);
Note: See TracChangeset for help on using the changeset viewer.