Changeset 7bc84b8
- Timestamp:
- Nov 21, 2022, 9:04:47 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- d41735a
- Parents:
- 857081e
- Location:
- tests
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/barrier/generation.cfa
r857081e r7bc84b8 37 37 for(c; 'A' ~= 'Z') { 38 38 // Yield for chaos 39 yield( (unsigned)prng(this, 10) );39 yield( prng(this, 10) ); 40 40 41 41 // Print the generation, no newline because … … 43 43 44 44 // Yield again for more chaos 45 yield( (unsigned)prng(this, 10) );45 yield( prng(this, 10) ); 46 46 47 47 // Block on the barrier -
tests/concurrent/barrier/order.cfa
r857081e r7bc84b8 37 37 for(l; NUM_LAPS) { 38 38 // Yield for chaos 39 yield( (unsigned)prng(this, 10) );39 yield( prng(this, 10) ); 40 40 41 41 // Block and what order we arrived -
tests/concurrent/once.cfa
r857081e r7bc84b8 30 30 31 31 // sometime yields 32 yield( (unsigned)prng(this, 3) );32 yield( prng(this, 3) ); 33 33 } 34 34 } -
tests/io/away_fair.cfa
r857081e r7bc84b8 67 67 #endif 68 68 69 yield( (unsigned)prng( this, 15 ) );69 yield( prng( this, 15 ) ); 70 70 71 71 #if CFA_HAVE_LINUX_IO_URING_H -
tests/io/comp_basic.cfa
r857081e r7bc84b8 58 58 block( globals.bar ); 59 59 60 yield( (unsigned)prng( this, 15 ) );60 yield( prng( this, 15 ) ); 61 61 62 62 unsigned i = __atomic_add_fetch( &counter, 1, __ATOMIC_SEQ_CST ); -
tests/io/comp_fair.cfa
r857081e r7bc84b8 78 78 block( globals.bar ); 79 79 80 yield( (unsigned)prng( this, 15 ) );80 yield( prng( this, 15 ) ); 81 81 82 82 unsigned i = __atomic_add_fetch( &counter, 1, __ATOMIC_SEQ_CST );
Note: See TracChangeset
for help on using the changeset viewer.