Changes in tests/unified_locking/locks.cfa [ec57856:0fc447c]
- File:
-
- 1 edited
-
tests/unified_locking/locks.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/unified_locking/locks.cfa
rec57856 r0fc447c 18 18 condition_variable( linear_backoff_then_block_lock ) c_l; 19 19 20 fast_block_lock f;21 fast_cond_var( fast_block_lock ) f_c_f;22 23 20 thread T_C_M_WS1 {}; 24 21 … … 102 99 } 103 100 unlock(l); 104 }105 }106 107 thread T_F_C_F_WS1 {};108 109 void main( T_F_C_F_WS1 & this ) {110 for (unsigned int i = 0; i < num_times; i++) {111 lock(f);112 if(empty(f_c_f) && i != num_times - 1) {113 wait(f_c_f,f);114 }else{115 notify_one(f_c_f);116 unlock(f);117 }118 101 } 119 102 } … … 339 322 } 340 323 printf("Done Test 12\n"); 341 342 printf("Start Test 13: fast block lock and fast cond var single wait/notify\n"); 343 { 344 T_F_C_F_WS1 t1[2]; 345 } 346 printf("Done Test 13\n"); 347 348 } 324 }
Note:
See TracChangeset
for help on using the changeset viewer.