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

Function checkIsRunning

src/lib/libeventloop.js:420–432  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

418
419 var thisMainLoopId = MainLoop.currentlyRunningMainloop;
420 function checkIsRunning() {
421 if (thisMainLoopId < MainLoop.currentlyRunningMainloop) {
422#if RUNTIME_DEBUG
423 dbg('main loop exiting');
424#endif
425 {{{ runtimeKeepalivePop() }}}
426#if !MINIMAL_RUNTIME
427 maybeExit();
428#endif
429 return false;
430 }
431 return true;
432 }
433
434 // We create the loop runner here but it is not actually running until
435 // _emscripten_set_main_loop_timing is called (which might happen at a

Callers 1

dbgFunction · 0.85

Calls 2

runtimeKeepalivePopFunction · 0.85
dbgFunction · 0.70

Tested by

no test coverage detected