Changeset 8fb7402
- Timestamp:
- Jan 9, 2023, 1:23:20 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 5e180c2, f76dd1a
- Parents:
- f28b1f8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/futures/select_future.cfa
rf28b1f8 r8fb7402 1 1 #include <thread.hfa> 2 2 #include <future.hfa> 3 #include <concurrency/barrier.hfa> 3 4 4 5 enum {NFUTURES = 10}; … … 121 122 } 122 123 } 124 125 barrier bar = { NFUTURES + 1 }; 123 126 124 127 thread Worker3 {}; … … 131 134 if( tt.0 != num ) abort(); 132 135 V( after_server ); 133 P( after_worker);136 block(bar); 134 137 } 135 138 … … 149 152 for ( i; NFUTURES ) P( after_server ); 150 153 reset( *shared_future ); 151 V( after_worker, NFUTURES);154 block(bar); 152 155 } 153 156 } … … 155 158 int main() { 156 159 printf( "start 1: blocking path future test\n" ); 157 processor procs[ 2];160 processor procs[11]; 158 161 shared_future = new(); 159 162 {
Note: See TracChangeset
for help on using the changeset viewer.