Skip to content

Commit f4a833c

Browse files
authored
Update comment for emscripten_has_threading_support. NFC (#26447)
This function works under both pthreads and Wasm Workers. Remove the reference to specific errno code which has already bitrotted (it returns ENOTSUP since #26105).
1 parent e8d79bc commit f4a833c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

system/include/emscripten/threading.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@
2020
extern "C" {
2121
#endif
2222

23-
// Returns true if the current browser is able to spawn threads with
24-
// pthread_create(), and the compiled page was built with threading support
25-
// enabled. If this returns 0, calls to pthread_create() will fail with return
26-
// code EAGAIN.
23+
// Returns true if the current runtime is able to spawn threads with shared
24+
// memory. If this function returns false then it will not be possible to
25+
// create new pthreads or Wasm Workers.
2726
bool emscripten_has_threading_support(void);
2827

2928
// Returns the number of logical cores on the system.

0 commit comments

Comments
 (0)