Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tlively committed Mar 7, 2023
1 parent 02bebfe commit 0a051f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1710,10 +1710,10 @@ def setup_pthreads(target):
'__emscripten_thread_init',
'__emscripten_thread_exit',
'__emscripten_thread_crashed',
'__emscripten_thread_mailbox_await',
'__emscripten_tls_init',
'_pthread_self',
'checkMailbox',
'__emscripten_thread_mailbox_await',
]
settings.EXPORTED_FUNCTIONS += worker_imports
building.user_requested_exports.update(worker_imports)
Expand Down
2 changes: 1 addition & 1 deletion src/library_pthread.js
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ var LibraryPThread = {
#if ASSERTIONS
assert(wait.async);
#endif
wait.value.then(() => checkMailbox());
wait.value.then(checkMailbox);
var waitingAsync = pthread_ptr + {{{ C_STRUCTS.pthread.waiting_async }}};
Atomics.store(HEAP32, waitingAsync >> 2, 1);
}
Expand Down

0 comments on commit 0a051f2

Please sign in to comment.