- Timestamp:
- May 12, 2023, 2:18:38 PM (19 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 4dd10fb
- Parents:
- 7c2c37a
- Location:
- tests/concurrent/waituntil
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/waituntil/one_chan.cfa
r7c2c37a r01de470 28 28 long long int total = 0; 29 29 printf("start\n"); 30 volatile size_t LINE_COUNTER = 1;31 30 { 32 31 Server1 s[numServers]; … … 34 33 waituntil( j >> C ) { total += j; } 35 34 } 36 LINE_COUNTER = 2;37 35 printf("waiting for empty channels\n"); 38 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 // }44 LINE_COUNTER = 7;45 36 printf("sending sentinels\n"); 46 LINE_COUNTER = 11;47 37 for ( i; numServers ) insert( C, -1 ); 48 LINE_COUNTER = 13;49 38 printf("joining servers\n"); 50 LINE_COUNTER = 17;51 39 } 52 40 assert(get_count( C ) == 0); 53 LINE_COUNTER = 19;54 41 if ( total != globalTotal ) 55 42 printf("CHECKSUM MISMATCH!! Main thread got %lld, server sum is %lld\n", total, globalTotal);
Note: See TracChangeset
for help on using the changeset viewer.