Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/unified_locking/locks.cfa

    rec57856 r0fc447c  
    1818condition_variable( linear_backoff_then_block_lock ) c_l;
    1919
    20 fast_block_lock f;
    21 fast_cond_var( fast_block_lock ) f_c_f;
    22 
    2320thread T_C_M_WS1 {};
    2421
     
    10299                }
    103100                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                 }
    118101        }
    119102}
     
    339322        }
    340323        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.