From 444ca7a0cc1e284414d89804da5e4f4fa6549419 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 22 Feb 2019 18:16:55 -0800 Subject: [PATCH] update docs about emscripten_exit_with_live_runtime and pthreads --- site/source/docs/api_reference/emscripten.h.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/source/docs/api_reference/emscripten.h.rst b/site/source/docs/api_reference/emscripten.h.rst index 46d643d432267..93fefe1bdee3f 100644 --- a/site/source/docs/api_reference/emscripten.h.rst +++ b/site/source/docs/api_reference/emscripten.h.rst @@ -438,8 +438,9 @@ Functions .. c:function:: void emscripten_exit_with_live_runtime(void) - Exits the program immediately, but leaves the runtime alive so that you can continue to run code later (so global destructors etc., are not run). Note that the runtime is kept alive automatically when you do an asynchronous operation like :c:func:`emscripten_async_call`, so you don't need to call this function for those cases. + Stops the current thread of execution, but leaves the runtime alive so that you can continue to run code later (so global destructors etc., are not run). Note that the runtime is kept alive automatically when you do an asynchronous operation like :c:func:`emscripten_async_call`, so you don't need to call this function for those cases. + In a multithreaded application, this just exits the current thread (and allows running code later in the Web Worker in which it runs). .. c:function:: void emscripten_force_exit(int status)