| 49 | } |
| 50 | |
| 51 | bool Coordinator::AllRunnersStopped() { |
| 52 | mutex_lock l(runners_lock_); |
| 53 | for (const auto& runner : runners_) { |
| 54 | if (runner->IsRunning()) { |
| 55 | return false; |
| 56 | } |
| 57 | } |
| 58 | return true; |
| 59 | } |
| 60 | |
| 61 | Status Coordinator::RequestStop() { |
| 62 | mutex_lock l(mu_); |