| 588 | } |
| 589 | |
| 590 | int WorkQueue::GetNumThreadsTakingAssignments() const { |
| 591 | int count = 0; |
| 592 | for (int i = 0; i < thread_count_; ++i) |
| 593 | if (assignment_history_[i]) |
| 594 | count++; |
| 595 | return count; |
| 596 | } |
| 597 | |
| 598 | int WorkQueue::GetNumThreadsCompletingTasks() const { |
| 599 | int count = 0; |