| 116 | Try<Nothing> ModuleManager::unload(const string& moduleName) |
| 117 | { |
| 118 | synchronized (mutex) { |
| 119 | if (!moduleBases.contains(moduleName)) { |
| 120 | return Error( |
| 121 | "Error unloading module '" + moduleName + "': module not loaded"); |
| 122 | } |
| 123 | |
| 124 | // Do not remove the dynamiclibrary as it could result in |
| 125 | // unloading the library from the process memory. |
| 126 | moduleBases.erase(moduleName); |
| 127 | } |
| 128 | return Nothing(); |
| 129 | } |
| 130 |
nothing calls this directly
no test coverage detected