| 596 | } |
| 597 | |
| 598 | int WorkQueue::GetNumThreadsCompletingTasks() const { |
| 599 | int count = 0; |
| 600 | for (int i = 0; i < thread_count_; ++i) |
| 601 | if (completion_history_[i]) |
| 602 | count++; |
| 603 | return count; |
| 604 | } |
| 605 | |
| 606 | int WorkQueue::GetNumberOfCompletedTasks() const { |
| 607 | int total = 0; |