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

Method invokePostHostFunc

include/executor/executor.h:120–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 }
119 }
120 void invokePostHostFunc() {
121 std::function<void(void *)> FuncSnapshot;
122 void *DataSnapshot = nullptr;
123 {
124 std::shared_lock Lock(Mutex);
125 FuncSnapshot = PostHostFunc;
126 DataSnapshot = PostHostData;
127 }
128 if (FuncSnapshot.operator bool()) {
129 FuncSnapshot(DataSnapshot);
130 }
131 }
132
133private:
134 void *PreHostData = nullptr;

Callers 1

enterFunctionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected