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

Method DestroyModule

core/module_graph.cc:288–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void ModuleGraph::DestroyModule(Module *m, bool erase) {
289 changes_made_ = true;
290
291 m->Destroy();
292
293 if (erase) {
294 all_modules_.erase(m->name());
295 }
296
297 if (m->is_task()) {
298 tasks_.erase(m->name());
299 }
300
301 delete m;
302}
303
304void ModuleGraph::DestroyAllModules() {
305 changes_made_ = true;

Callers

nothing calls this directly

Calls 2

DestroyMethod · 0.80
is_taskMethod · 0.80

Tested by

no test coverage detected