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

Method UnLoadPlugin

src/runtime/core/plugin/plugin_loader.cc:38–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void PluginLoader::UnLoadPlugin() {
39 if (!dynamic_lib_.IsLoaded()) return;
40
41 if (plugin_ptr_ != nullptr) {
42 if (destroy_func_ != nullptr) {
43 ((DynlibDestroyCorePluginFunc)destroy_func_)(plugin_ptr_);
44 } else {
45 AIMRT_WARN("Destroy func is null!");
46 }
47 }
48
49 destroy_func_ = nullptr;
50 dynamic_lib_.Unload();
51}
52
53} // namespace aimrt::runtime::core::plugin

Callers

nothing calls this directly

Calls 2

IsLoadedMethod · 0.80
UnloadMethod · 0.80

Tested by

no test coverage detected