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

Method HasRunningWorker

core/module.h:350–357  ·  view source on GitHub ↗

True if any worker attached to this module is running.

Source from the content-addressed store, hash-verified

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 {

Callers 2

RunCommandMethod · 0.80
RunCommandMethod · 0.80

Calls 1

is_worker_runningFunction · 0.85

Tested by

no test coverage detected