MCPcopy Create free account
hub / github.com/AimRT/AimRT / DestroyModule

Method DestroyModule

src/runtime/core/module/module_loader.cc:143–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void ModuleLoader::DestroyModule(const aimrt_module_base_t* module_ptr) {
144 if (module_ptr == nullptr) {
145 AIMRT_WARN("Destroy a null pointer!");
146 return;
147 }
148
149 if (destroy_func_ == nullptr) {
150 AIMRT_WARN("Destroy func is null!");
151 return;
152 }
153
154 ((DynlibDestroyModuleFunc)destroy_func_)(module_ptr);
155}
156
157} // namespace aimrt::runtime::core::module

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected