67 |
67 |
68 bool |
68 bool |
69 ParallelTaskTerminator::offer_termination(TerminatorTerminator* terminator) { |
69 ParallelTaskTerminator::offer_termination(TerminatorTerminator* terminator) { |
70 Atomic::inc(&_offered_termination); |
70 Atomic::inc(&_offered_termination); |
71 |
71 |
72 juint yield_count = 0; |
72 uint yield_count = 0; |
73 while (true) { |
73 while (true) { |
74 if (_offered_termination == _n_threads) { |
74 if (_offered_termination == _n_threads) { |
75 //inner_termination_loop(); |
75 //inner_termination_loop(); |
76 return true; |
76 return true; |
77 } else { |
77 } else { |