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

Function dispatch

src/lib/libwasm_worker.js:324–328  ·  view source on GitHub ↗
(idx, ret)

Source from the content-addressed store, hash-verified

322 emscripten_semaphore_async_acquire__deps: ['$polyfillWaitAsync'],
323 emscripten_semaphore_async_acquire: (sem, num, asyncWaitFinished, userData, maxWaitMilliseconds) => {
324 let dispatch = (idx, ret) => {
325 setTimeout(() => {
326 {{{ makeDynCall('viiii', 'asyncWaitFinished') }}}(sem, /*val=*/idx, /*waitResult=*/ret, userData);
327 }, 0);
328 };
329 let tryAcquireSemaphore = () => {
330 let val = num;
331 do {

Callers 1

tryAcquireSemaphoreFunction · 0.85

Calls 1

makeDynCallFunction · 0.85

Tested by

no test coverage detected