MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / reset

Method reset

include/runtime/storemgr.h:72–79  ·  view source on GitHub ↗

Reset this store manager and unlink all the registered module instances.

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

unlinkStoreMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected