True if any worker attached to this module is running.
| 348 | |
| 349 | // True if any worker attached to this module is running. |
| 350 | inline bool HasRunningWorker() const { |
| 351 | for (int wid = 0; wid < Worker::kMaxWorkers; wid++) { |
| 352 | if (active_workers_[wid] && is_worker_running(wid)) { |
| 353 | return true; |
| 354 | } |
| 355 | } |
| 356 | return false; |
| 357 | } |
| 358 | |
| 359 | // Check if we have already seen a task |
| 360 | inline bool HaveVisitedWorker(const Task *task) const { |
no test coverage detected