Skip to content

Commit ecbd5fa

Browse files
committed
Revert non-NFC change
As it's essentially a bug fix.
1 parent 70bfc3b commit ecbd5fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/lib/libc/musl/src/thread/pthread_barrier_wait.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ int pthread_barrier_wait(pthread_barrier_t *b)
9393
if (is_runtime_thread) {
9494
int e;
9595
do {
96-
// Assist other threads by executing proxied operations that are effectively singlethreaded.
97-
emscripten_main_thread_process_queued_calls();
9896
// Main runtime thread may need to run proxied calls, so sleep in very small slices to be responsive.
9997
e = emscripten_futex_wait(&inst->finished, 1, 1);
98+
// Assist other threads by executing proxied operations that are effectively singlethreaded.
99+
emscripten_main_thread_process_queued_calls();
100100
} while (e == -ETIMEDOUT);
101101
} else {
102102
// Can wait in one go.

0 commit comments

Comments
 (0)