Reset this store manager and unlink all the registered module instances.
| 70 | |
| 71 | /// Reset this store manager and unlink all the registered module instances. |
| 72 | void reset() noexcept { |
| 73 | std::unique_lock Lock(Mutex); |
| 74 | for (auto &&[Name, ModInst] : NamedMod) { |
| 75 | (const_cast<Instance::ModuleInstance *>(ModInst)) |
| 76 | ->unlinkStore(this, Name); |
| 77 | } |
| 78 | NamedMod.clear(); |
| 79 | } |
| 80 | |
| 81 | /// Register a named module in this store. |
| 82 | Expect<void> registerModule(const Instance::ModuleInstance *ModInst) { |
nothing calls this directly
no test coverage detected