| 986 | } |
| 987 | |
| 988 | bool 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 | |
| 1001 | bool PluginManager::reload (const string &name) |
| 1002 | { |