| 392 | } |
| 393 | |
| 394 | bool |
| 395 | PluginDso::LoadedPlugins::addPluginPathToDsoOptOutTable(std::string_view pluginPath) |
| 396 | { |
| 397 | std::error_code ec; |
| 398 | auto effectivePath = fs::canonical(fs::path{pluginPath}, ec); |
| 399 | |
| 400 | if (ec) { |
| 401 | PluginError("Error getting the canonical path: %s", ec.message().c_str()); |
| 402 | return false; |
| 403 | } |
| 404 | |
| 405 | { |
| 406 | SCOPED_MUTEX_LOCK(lock, _mutex, this_ethread()); |
| 407 | _optoutDsoReloadPlugins.push_front(DisableDSOReloadPluginInfo{std::move(effectivePath)}); |
| 408 | } |
| 409 | |
| 410 | return true; |
| 411 | } |
| 412 | |
| 413 | void |
| 414 | PluginDso::LoadedPlugins::removePluginPathFromDsoOptOutTable(std::string_view pluginPath) |