Skip to content

Commit d27a842

Browse files
authored
Mention current Wasm Worker limitations in the docs. NFC (#26376)
This just documents the current limitations. See #26375
1 parent c7ef7db commit d27a842

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

site/source/docs/api_reference/wasm_workers.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,19 @@ Pthreads and Wasm Workers share several similarities:
104104

105105
However, the differences are more notable.
106106

107+
C11 thread APIs are not available under Wasm Workers
108+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
109+
110+
Becuase our C11 threading API is based on pthreads internally these APIs are not
111+
available under Wasm Worker.
112+
113+
Some standard C++ APIs are not available under Wasm Workers
114+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
115+
116+
Some parts of the libc++ stndard library are not available under Wasm Workers
117+
becuase they depend on pthreads internally. For example `std::call_once``:
118+
https://github.com/emscripten-core/emscripten/issues/26375.
119+
107120
Pthreads can proxy JS functions
108121
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
109122

0 commit comments

Comments
 (0)