()
| 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 |
no test coverage detected