| 567 | } |
| 568 | |
| 569 | void WorkQueue::ResetHistory() { |
| 570 | for (int i = 0; i < thread_count_; ++i) { |
| 571 | assignment_history_[i] = 0; |
| 572 | completion_history_[i] = 0; |
| 573 | } |
| 574 | } |
| 575 | |
| 576 | int WorkQueue::GetMinCompletionsByWorkerThread() const { |
| 577 | int minumum = completion_history_[0]; |