Skip to content

Commit 9445d6a

Browse files
authored
Fix pthread dependencies. NFC (#22466)
The `terminateAllThreads` function is a member within the `PThead` object so it cannot itself have `__deps`.
1 parent ad7c40c commit 9445d6a

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
@@ -35,6 +35,7 @@ var LibraryPThread = {
3535
$PThread__postset: 'PThread.init();',
3636
$PThread__deps: ['_emscripten_thread_init',
3737
'$killThread',
38+
'$terminateWorker',
3839
'$cancelThread', '$cleanupThread', '$zeroMemory',
3940
#if MAIN_MODULE
4041
'$markAsFinished',
@@ -166,7 +167,6 @@ var LibraryPThread = {
166167
},
167168
#endif
168169

169-
terminateAllThreads__deps: ['$terminateWorker'],
170170
terminateAllThreads: () => {
171171
#if ASSERTIONS
172172
assert(!ENVIRONMENT_IS_PTHREAD, 'Internal Error! terminateAllThreads() can only ever be called from main application thread!');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5103
1+
5100
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11028
1+
11035

0 commit comments

Comments
 (0)