|
1 | 1 | var LibraryPThread = {
|
2 | 2 | $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'], |
4 | 4 | $PThread: {
|
5 | 5 | MAIN_THREAD_ID: 1, // A special constant that identifies the main JS thread ID.
|
6 | 6 | mainThreadInfo: {
|
@@ -498,7 +498,7 @@ var LibraryPThread = {
|
498 | 498 | if (canceled == 2) throw 'Canceled!';
|
499 | 499 | },
|
500 | 500 |
|
501 |
| - pthread_join__deps: ['_cleanup_thread', '_pthread_testcancel_js'], |
| 501 | + pthread_join__deps: ['_cleanup_thread', '_pthread_testcancel_js', 'emscripten_main_thread_process_queued_calls'], |
502 | 502 | pthread_join: function(thread, status) {
|
503 | 503 | if (!thread) {
|
504 | 504 | Module['printErr']('pthread_join attempted on a null thread pointer!');
|
@@ -771,7 +771,7 @@ var LibraryPThread = {
|
771 | 771 | _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)',
|
772 | 772 |
|
773 | 773 | // 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'], |
775 | 775 | emscripten_futex_wait: function(addr, val, timeout) {
|
776 | 776 | if (addr <= 0 || addr > HEAP8.length || addr&3 != 0) return -{{{ cDefine('EINVAL') }}};
|
777 | 777 | // dump('futex_wait addr:' + addr + ' by thread: ' + _pthread_self() + (ENVIRONMENT_IS_PTHREAD?'(pthread)':'') + '\n');
|
|
0 commit comments