- File:
-
- 1 edited
-
tests/concurrent/readyQ/leader_spin.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/readyQ/leader_spin.cfa
r928128d rbe1d00c 26 26 } 27 27 28 PRNG lead_rng;28 PRNG64 lead_rng; 29 29 volatile unsigned leader; 30 30 volatile size_t lead_idx; 31 31 32 const u nsignednthreads = 17;33 const u nsignedstop_count = 327;32 const uint64_t nthreads = 17; 33 const uint64_t stop_count = 327; 34 34 35 35 thread$ * the_main; … … 50 50 for(i; nthreads) { 51 51 while( threads[i]->idx != lead_idx ) { 52 Pause();52 sched_yield(); 53 53 } 54 54 }
Note:
See TracChangeset
for help on using the changeset viewer.