aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-07-20 18:24:39 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-07-20 18:24:39 -0700
commite935757662b408058bd686855066cb9a8d6ca9a1 (patch)
treef6e0b9ff16ae1c76f9bb703d14aea5918ecf8723
parentbde77dd03193c4de612cc84e0871c63564d5e4b0 (diff)
warning on emscripten_push_main_loop_blocker
-rw-r--r--system/include/emscripten/emscripten.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h
index 900fce2e..be749f14 100644
--- a/system/include/emscripten/emscripten.h
+++ b/system/include/emscripten/emscripten.h
@@ -50,7 +50,11 @@ extern void emscripten_cancel_main_loop();
/*
* Add a function to a queue of events that will execute
- * before the main loop will continue.
+ * before the main loop will continue. The event is pushed
+ * into the back of the queue. (Note that in the native version
+ * of this we simply execute the function, so to keep semantics
+ * identical be careful to not push while the queue is being
+ * used.)
*/
#if EMSCRIPTEN
extern void emscripten_push_main_loop_blocker(void (*func)());