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

Function module_stop

TactilityKernel/source/module.cpp:69–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69error_t module_stop(struct Module* module) {
70 LOG_I(TAG, "stop %s", module->name);
71
72 auto* internal = module->internal;
73 if (internal == nullptr) return ERROR_INVALID_STATE;
74 if (!internal->started) return ERROR_NONE;
75
76 error_t error = module->stop();
77 if (error != ERROR_NONE) {
78 return error;
79 }
80
81 internal->started = false;
82 return error;
83}
84
85error_t module_construct_add_start(struct Module* module) {
86 error_t error = module_construct(module);

Callers 2

ModuleTest.cppFile · 0.85
stopFunction · 0.85

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected