| 604 | } |
| 605 | |
| 606 | int WorkQueue::GetNumberOfCompletedTasks() const { |
| 607 | int total = 0; |
| 608 | for (int i = 0; i < thread_count_; ++i) |
| 609 | total += completion_history_[i]; |
| 610 | return total; |
| 611 | } |
| 612 | |
| 613 | void WorkQueue::SetWorkTime(TimeDelta delay) { |
| 614 | worker_delay_ = delay; |