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

Function module_start

TactilityKernel/source/module.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52error_t module_start(Module* module) {
53 LOG_I(TAG, "start %s", module->name);
54
55 auto* internal = module->internal;
56 if (internal == nullptr) return ERROR_INVALID_STATE;
57 if (internal->started) return ERROR_NONE;
58
59 error_t error = module->start();
60 internal->started = (error == ERROR_NONE);
61 return error;
62}
63
64bool module_is_started(struct Module* module) {
65 auto* internal = module->internal;

Callers 3

ModuleTest.cppFile · 0.85
startFunction · 0.85

Calls 1

startMethod · 0.45

Tested by

no test coverage detected