From fd8eb04955901bbe993493798504546f6a6ab3f9 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Sun, 28 Apr 2024 10:18:38 -0700 Subject: [PATCH] Fix some old references to src/worker.js. NFC Followup to #21701 --- src/library_pthread.js | 2 +- system/lib/pthread/thread_mailbox.c | 2 +- tools/link.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/library_pthread.js b/src/library_pthread.js index 31349149a88c8..725508d67da59 100644 --- a/src/library_pthread.js +++ b/src/library_pthread.js @@ -134,7 +134,7 @@ var LibraryPThread = { // pthread_join to them would block forever. // pthreads can still choose to set `noExitRuntime` explicitly, or // call emscripten_unwind_to_js_event_loop to extend their lifetime beyond - // their main function. See comment in src/worker.js for more. + // their main function. See comment in src/runtime_pthread.js for more. noExitRuntime = false; #endif }, diff --git a/system/lib/pthread/thread_mailbox.c b/system/lib/pthread/thread_mailbox.c index 1c5de99557efb..64855e8091418 100644 --- a/system/lib/pthread/thread_mailbox.c +++ b/system/lib/pthread/thread_mailbox.c @@ -70,7 +70,7 @@ void _emscripten_thread_mailbox_init(pthread_t thread) { thread->waiting_async = 0; } -// Exported for use in worker.js, but otherwise an internal function. +// Internal function, called from runtime_pthread.js void _emscripten_check_mailbox() { // Before we attempt to execute a request from another thread make sure we // are in sync with all the loaded code. diff --git a/tools/link.py b/tools/link.py index 0c93a4f77d6cf..805ecdbbe238b 100644 --- a/tools/link.py +++ b/tools/link.py @@ -482,7 +482,7 @@ def setup_pthreads(): default_setting('DEFAULT_PTHREAD_STACK_SIZE', settings.STACK_SIZE) - # Functions needs to be exported from the module since they are used in worker.js + # Functions needs by runtime_pthread.js settings.REQUIRED_EXPORTS += [ '_emscripten_thread_free_data', '_emscripten_thread_crashed',