Skip to content

Commit 7f369e1

Browse files
authored
Fix some old references to src/worker.js. NFC (#21845)
Followup to #21701
1 parent b941b7b commit 7f369e1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/library_pthread.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ var LibraryPThread = {
134134
// pthread_join to them would block forever.
135135
// pthreads can still choose to set `noExitRuntime` explicitly, or
136136
// call emscripten_unwind_to_js_event_loop to extend their lifetime beyond
137-
// their main function. See comment in src/worker.js for more.
137+
// their main function. See comment in src/runtime_pthread.js for more.
138138
noExitRuntime = false;
139139
#endif
140140
},

system/lib/pthread/thread_mailbox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void _emscripten_thread_mailbox_init(pthread_t thread) {
7070
thread->waiting_async = 0;
7171
}
7272

73-
// Exported for use in worker.js, but otherwise an internal function.
73+
// Internal function, called from runtime_pthread.js
7474
void _emscripten_check_mailbox() {
7575
// Before we attempt to execute a request from another thread make sure we
7676
// are in sync with all the loaded code.

tools/link.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def setup_pthreads():
482482

483483
default_setting('DEFAULT_PTHREAD_STACK_SIZE', settings.STACK_SIZE)
484484

485-
# Functions needs to be exported from the module since they are used in worker.js
485+
# Functions needs by runtime_pthread.js
486486
settings.REQUIRED_EXPORTS += [
487487
'_emscripten_thread_free_data',
488488
'_emscripten_thread_crashed',

0 commit comments

Comments
 (0)