Skip to content

Commit 62df7f5

Browse files
committed
Add missing deps directives to emscripten_main_thread_process_queued_calls
1 parent ff3620f commit 62df7f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/library_pthread.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var LibraryPThread = {
22
$PThread__postset: 'if (!ENVIRONMENT_IS_PTHREAD) PThread.initMainThreadBlock();',
3-
$PThread__deps: ['$PROCINFO', '_register_pthread_ptr'],
3+
$PThread__deps: ['$PROCINFO', '_register_pthread_ptr', 'emscripten_main_thread_process_queued_calls'],
44
$PThread: {
55
MAIN_THREAD_ID: 1, // A special constant that identifies the main JS thread ID.
66
mainThreadInfo: {
@@ -498,7 +498,7 @@ var LibraryPThread = {
498498
if (canceled == 2) throw 'Canceled!';
499499
},
500500

501-
pthread_join__deps: ['_cleanup_thread', '_pthread_testcancel_js'],
501+
pthread_join__deps: ['_cleanup_thread', '_pthread_testcancel_js', 'emscripten_main_thread_process_queued_calls'],
502502
pthread_join: function(thread, status) {
503503
if (!thread) {
504504
Module['printErr']('pthread_join attempted on a null thread pointer!');
@@ -771,7 +771,7 @@ var LibraryPThread = {
771771
_main_thread_futex_wait_address: '; if (ENVIRONMENT_IS_PTHREAD) __main_thread_futex_wait_address = PthreadWorkerInit.__main_thread_futex_wait_address; else PthreadWorkerInit.__main_thread_futex_wait_address = __main_thread_futex_wait_address = allocate(1, "i32*", ALLOC_STATIC)',
772772

773773
// Returns 0 on success, or one of the values -ETIMEDOUT, -EWOULDBLOCK or -EINVAL on error.
774-
emscripten_futex_wait__deps: ['_main_thread_futex_wait_address'],
774+
emscripten_futex_wait__deps: ['_main_thread_futex_wait_address', 'emscripten_main_thread_process_queued_calls'],
775775
emscripten_futex_wait: function(addr, val, timeout) {
776776
if (addr <= 0 || addr > HEAP8.length || addr&3 != 0) return -{{{ cDefine('EINVAL') }}};
777777
// dump('futex_wait addr:' + addr + ' by thread: ' + _pthread_self() + (ENVIRONMENT_IS_PTHREAD?'(pthread)':'') + '\n');

0 commit comments

Comments
 (0)