MCPcopy Create free account
hub / github.com/DFHack/dfhack / unloadAll

Method unloadAll

library/PluginManager.cpp:988–999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986}
987
988bool PluginManager::unloadAll()
989{
990 std::lock_guard<std::recursive_mutex> lock{*plugin_mutex};
991 bool ok = true;
992 // only try to unload plugins that are in all_plugins
993 for (auto it = begin(); it != end(); ++it)
994 {
995 if (!unload(it->first))
996 ok = false;
997 }
998 return ok;
999}
1000
1001bool PluginManager::reload (const string &name)
1002{

Callers 1

loadMethod · 0.80

Calls 1

beginFunction · 0.85

Tested by

no test coverage detected