MCPcopy Create free account
hub / github.com/NetSys/bess / WorkerPauser

Method WorkerPauser

core/worker.cc:414–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414WorkerPauser::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
426WorkerPauser::~WorkerPauser() {
427 attach_orphans(); // All workers should be paused at this point.

Callers

nothing calls this directly

Calls 3

is_any_worker_runningFunction · 0.85
is_worker_runningFunction · 0.85
pause_workerFunction · 0.85

Tested by

no test coverage detected