We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70bfc3b commit ecbd5faCopy full SHA for ecbd5fa
system/lib/libc/musl/src/thread/pthread_barrier_wait.c
@@ -93,10 +93,10 @@ int pthread_barrier_wait(pthread_barrier_t *b)
93
if (is_runtime_thread) {
94
int e;
95
do {
96
- // Assist other threads by executing proxied operations that are effectively singlethreaded.
97
- emscripten_main_thread_process_queued_calls();
98
// Main runtime thread may need to run proxied calls, so sleep in very small slices to be responsive.
99
e = emscripten_futex_wait(&inst->finished, 1, 1);
+ // Assist other threads by executing proxied operations that are effectively singlethreaded.
+ emscripten_main_thread_process_queued_calls();
100
} while (e == -ETIMEDOUT);
101
} else {
102
// Can wait in one go.
0 commit comments