diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-07-12 18:26:46 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-07-12 18:26:46 -0700 |
commit | 3b6025a2c41faa2bdbe3dae354d5be439d78e38c (patch) | |
tree | d834771d424539976762961588be72caaba51469 /system | |
parent | 42f93a46a60f2c4408a700aadc5d3fa104ae757e (diff) |
emscripten_push_main_loop_blocker
Diffstat (limited to 'system')
-rw-r--r-- | system/include/emscripten/emscripten.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h index 5b71ce6a..575c3e2a 100644 --- a/system/include/emscripten/emscripten.h +++ b/system/include/emscripten/emscripten.h @@ -49,6 +49,12 @@ extern void emscripten_resume_main_loop(); extern void emscripten_cancel_main_loop(); /* + * Add a function to a queue of events that will execute + * before the main loop will continue. + */ +extern void emscripten_push_main_loop_blocker(void (*func)()); + +/* * Call a C function asynchronously, that is, after returning * control to the JS event loop. This is done by a setTimeout. * When building natively this becomes a simple direct call, |