From b3155c60b8e1c6de9cfd1b97d0bd6fd73966ba33 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 10 Mar 2026 15:10:07 -0700 Subject: [PATCH] Update comment for emscripten_has_threading_support. NFC 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). --- system/include/emscripten/threading.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/system/include/emscripten/threading.h b/system/include/emscripten/threading.h index 34ebddc362b32..ffb63b7eb9f12 100644 --- a/system/include/emscripten/threading.h +++ b/system/include/emscripten/threading.h @@ -20,10 +20,9 @@ extern "C" { #endif -// Returns true if the current browser is able to spawn threads with -// pthread_create(), and the compiled page was built with threading support -// enabled. If this returns 0, calls to pthread_create() will fail with return -// code EAGAIN. +// Returns true if the current runtime is able to spawn threads with shared +// memory. If this function returns false then it will not be possible to +// create new pthreads or Wasm Workers. bool emscripten_has_threading_support(void); // Returns the number of logical cores on the system.