Changeset b5749f9
- Timestamp:
- Nov 18, 2025, 10:32:06 AM (4 hours ago)
- Branches:
- master
- Parents:
- 86b418f
- File:
-
- 1 edited
-
tests/concurrency/waituntil/futures.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/waituntil/futures.cfa
r86b418f rb5749f9 18 18 size_t count = 0; 19 19 Server s; 20 for ( 3) {21 waituntil( A ) { count += 1; A(); /* get( A ) */ reset( A );}22 or waituntil( B ) { count += 1; B(); reset( B );}23 or waituntil( C ) { count += 1; C(); reset( C );}20 for ( ; count < 3; ) { 21 waituntil( A ) { count += 1; A(); /* get( A ) */ } 22 or waituntil( B ) { count += 1; B(); } 23 or waituntil( C ) { count += 1; C(); } 24 24 } 25 assert( count == 3);25 reset( A ); reset( B ); reset( C ); 26 26 } 27 27 { 28 28 size_t count = 0; 29 29 Server s; 30 for ( 2) {31 waituntil( A ) { count += 1; A(); /* get( A ) */ reset( A );}32 or waituntil( B ) { count += 1; B(); reset( B );}33 and waituntil( C ) { count += 1; C(); reset( C );}30 for ( ; count < 3; ) { 31 waituntil( A ) { count += 1; A(); /* get( A ) */ } 32 or waituntil( B ) { count += 1; B(); } 33 and waituntil( C ) { count += 1; C(); } 34 34 } 35 assert( count == 3);35 reset( A ); reset( B ); reset( C ); 36 36 } 37 37 size_t count = 0; … … 52 52 reset( A ); reset( B ); reset( C ); 53 53 } // for 54 assert( count == 19 );55 54 sout | "end"; 56 55 }
Note:
See TracChangeset
for help on using the changeset viewer.