MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / module_remove

Function module_remove

TactilityKernel/source/module.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45error_t module_remove(Module* module) {
46 mutex_lock(&ledger.mutex);
47 ledger.modules.erase(std::remove(ledger.modules.begin(), ledger.modules.end(), module), ledger.modules.end());
48 mutex_unlock(&ledger.mutex);
49 return ERROR_NONE;
50}
51
52error_t module_start(Module* module) {
53 LOG_I(TAG, "start %s", module->name);

Callers 1

ModuleTest.cppFile · 0.85

Calls 3

mutex_lockFunction · 0.85
mutex_unlockFunction · 0.85
removeFunction · 0.50

Tested by

no test coverage detected