MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / load

Method load

src/shared_library_WIN.cpp:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void SharedLibrary::load(const std::string& path, int)
17{
18 std::unique_lock<std::mutex> lock(_mutex);
19
20 _handle = LoadLibrary(path.c_str());
21 if(!_handle)
22 {
23 throw RuntimeError("Could not load library: " + path);
24 }
25 _path = path;
26}
27
28void SharedLibrary::unload()
29{

Callers 7

registerFromPluginMethod · 0.45
isHaltRequestedMethod · 0.45
FileLogger2Method · 0.45
SqliteLoggerMethod · 0.45
isHaltRequestedMethod · 0.45
runMethod · 0.45
waitForMethod · 0.45

Calls 1

RuntimeErrorClass · 0.85

Tested by

no test coverage detected