MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / runIfWorkerThread

Function runIfWorkerThread

src/parseTools.mjs:912–918  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

910}
911
912function runIfWorkerThread(text) {
913 if (WASM_WORKERS || PTHREADS) {
914 return `if (${ENVIRONMENT_IS_WORKER_THREAD()}) { ${text} }`;
915 } else {
916 return '';
917 }
918}
919
920function expectToReceiveOnModule(name) {
921 return INCOMING_MODULE_JS_API.has(name);

Callers 1

initMemoryFunction · 0.85

Calls 1

Tested by

no test coverage detected