Skip to content

Commit 6cdb695

Browse files
authored
[Docs] Mention emscripten_exit_with_live_runtime wrt pthreads (#8167)
1 parent 89c2a83 commit 6cdb695

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/source/docs/api_reference/emscripten.h.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,9 @@ Functions
482482
483483
.. c:function:: void emscripten_exit_with_live_runtime(void)
484484
485-
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.
485+
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.
486486
487+
In a multithreaded application, this just exits the current thread (and allows running code later in the Web Worker in which it runs).
487488
488489
.. c:function:: void emscripten_force_exit(int status)
489490

0 commit comments

Comments
 (0)