aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-03-03 14:13:38 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-03-03 14:13:38 -0800
commit6b58586884c76dcf3b1ba76e7dc533e5589133cb (patch)
tree951fd7852fb317c190213b3483fdcef409f4898a /system
parent6ec190d3940cc2c115563ac924dc9a18325bf8c2 (diff)
docs edit
Diffstat (limited to 'system')
-rw-r--r--system/include/emscripten/emscripten.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h
index 7a2b8175..a3009936 100644
--- a/system/include/emscripten/emscripten.h
+++ b/system/include/emscripten/emscripten.h
@@ -403,9 +403,11 @@ void emscripten_call_worker(worker_handle worker, const char *funcname, char *da
* Sends a response when in a worker call. Both functions post a message
* back to the thread which called the worker. The _respond_provisionally
* variant can be invoked multiple times, which will queue up messages to
- * be posted to the worker's creator. Eventually, the _respond variant can
+ * be posted to the worker's creator. Eventually, the _respond variant must
* be invoked, which will disallow further messages and free framework
- * resources previously allocated for this worker call.
+ * resources previously allocated for this worker call. (Calling the
+ * provisional version is optional, but you must call the non-provisional
+ * one to avoid leaks.)
*/
void emscripten_worker_respond(char *data, int size);
void emscripten_worker_respond_provisionally(char *data, int size);