Skip to content

Commit 4247a48

Browse files
authored
work around #32087 by polling for I/O on windows inside thread loops (#32109)
1 parent fb181c3 commit 4247a48

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/partr.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,11 @@ JL_DLLEXPORT jl_task_t *jl_task_get_next(jl_value_t *getsticky)
314314
}
315315
uv_loop_t *loop = jl_global_event_loop();
316316
loop->stop_flag = 0;
317+
#ifdef _OS_WINDOWS_
318+
uv_run(loop, UV_RUN_NOWAIT);
319+
#else
317320
uv_run(loop, UV_RUN_ONCE);
321+
#endif
318322
JL_UV_UNLOCK();
319323
}
320324
else {

0 commit comments

Comments
 (0)