| 412 | } |
| 413 | |
| 414 | WorkerPauser::WorkerPauser() { |
| 415 | if (is_any_worker_running()) { |
| 416 | for (int wid = 0; wid < Worker::kMaxWorkers; wid++) { |
| 417 | if (is_worker_running(wid)) { |
| 418 | workers_paused_.push_back(wid); |
| 419 | VLOG(1) << "*** Pausing Worker " << wid << " ***"; |
| 420 | pause_worker(wid); |
| 421 | } |
| 422 | } |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | WorkerPauser::~WorkerPauser() { |
| 427 | attach_orphans(); // All workers should be paused at this point. |
nothing calls this directly
no test coverage detected