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

Method DestroyAllTasks

core/module.cc:386–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384 return;
385}
386void Module::DestroyAllTasks() {
387 for (auto task : tasks_) {
388 auto c = task->GetTC();
389
390 int wid = c->WorkerId();
391 if (wid >= 0) {
392 bess::Scheduler *s = workers[wid]->scheduler();
393 s->wakeup_queue().Remove(c);
394 }
395
396 CHECK(detach_tc(c));
397 delete c;
398 }
399 tasks_.clear();
400}
401
402void Module::DeregisterAllAttributes() {
403 for (const auto &it : attrs_) {

Callers

nothing calls this directly

Calls 6

detach_tcFunction · 0.85
GetTCMethod · 0.80
WorkerIdMethod · 0.80
schedulerMethod · 0.80
clearMethod · 0.80
RemoveMethod · 0.45

Tested by

no test coverage detected