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

Method getActiveModule

include/vm/vm.h:261–264  ·  view source on GitHub ↗

Get current instantiated module instance.

Source from the content-addressed store, hash-verified

259
260 /// Get current instantiated module instance.
261 const Runtime::Instance::ModuleInstance *getActiveModule() const {
262 std::shared_lock Lock(Mutex);
263 return unsafeGetActiveModule();
264 }
265
266 /// Getter for the store set in the VM.
267 Runtime::StoreManager &getStoreManager() noexcept { return StoreRef; }

Callers 5

TEST_PFunction · 0.80
TEST_PFunction · 0.80
checkNullTableEntryFunction · 0.80

Calls

no outgoing calls

Tested by 3

TEST_PFunction · 0.64
TEST_PFunction · 0.64
checkNullTableEntryFunction · 0.64