Changeset c2c1717 for tests/concurrency
- Timestamp:
- Jul 17, 2023, 1:46:48 PM (18 months ago)
- Branches:
- master
- Children:
- 9cb2742
- Parents:
- a0b59ed
- Location:
- tests/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/channels/daisy_chain.cfa
ra0b59ed rc2c1717 19 19 void main(Task & this) { 20 20 size_t runs = 0; 21 int token = 0; 21 22 try{ 22 23 for ( ;; ) { 23 remove( *chain );24 insert( *chain, 0 );24 token << *chain; 25 token >> *chain; 25 26 runs++; 26 27 } … … 59 60 Channel chainChan{ 1 }; 60 61 61 insert( chainChan, 0 );62 ((int)0) >> chainChan; 62 63 63 64 chain = &chainChan; -
tests/concurrency/waituntil/repeat_close.cfa
ra0b59ed rc2c1717 26 26 } 27 27 28 29 thread Consumer {}; 28 thread Consumer {}; 30 29 void main( Consumer & this ) { 31 30 long long int in, A_removes = 0, B_removes = 0, C_removes = 0, D_removes = 0, E_removes = 0, F_removes = 0; … … 93 92 { 94 93 Producer p[ num_thds / 2 ]; 95 Consumer c[ 1];94 Consumer c[ num_thds / 2 ]; 96 95 sleep(time`s); 97 96 close(A);
Note: See TracChangeset
for help on using the changeset viewer.