Changeset d923fca for tests/concurrency/waituntil/repeat_close.cfa
- Timestamp:
- Feb 18, 2025, 12:54:23 PM (6 weeks ago)
- Branches:
- master
- Children:
- 8705a11
- Parents:
- 3e5fea2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tests/concurrency/waituntil/repeat_close.cfa ¶
r3e5fea2 rd923fca 10 10 11 11 thread Producer {}; 12 void main( Producer & this ) { 13 long long int my_inserts = 0; 12 void main( Producer & ) { 14 13 long long int A_i = 0, B_i = 0, C_i = 0, D_i = 0, E_i = 0, F_i = 0; 15 14 try { … … 22 21 and waituntil( F << i ) { F_i++; } 23 22 } 24 } catch ( channel_closed * e ) {} 23 } catch ( channel_closed * e ) {} 25 24 __atomic_fetch_add( &inserts, A_i + B_i + C_i + D_i + E_i + F_i, __ATOMIC_SEQ_CST ); 26 25 } 27 26 28 27 thread Consumer {}; 29 void main( Consumer & this) {28 void main( Consumer & ) { 30 29 long long int in, A_removes = 0, B_removes = 0, C_removes = 0, D_removes = 0, E_removes = 0, F_removes = 0; 31 30 try { … … 83 82 printf("Start\n"); 84 83 for ( i; num_times ) { 85 printf("% lu\n", i);84 printf("%zu\n", i); 86 85 A{chan_size}; 87 86 B{chan_size};
Note: See TracChangeset
for help on using the changeset viewer.