| 936 | } |
| 937 | |
| 938 | void PluginManager::refresh() |
| 939 | { |
| 940 | std::lock_guard<std::recursive_mutex> lock{*plugin_mutex}; |
| 941 | auto files = listPlugins(); |
| 942 | for (auto f = files.begin(); f != files.end(); ++f) |
| 943 | { |
| 944 | if (!(*this)[*f]) |
| 945 | addPlugin(*f); |
| 946 | } |
| 947 | } |
| 948 | |
| 949 | bool PluginManager::load (const string &name) |
| 950 | { |