Skip to content

Commit ad5e60a

Browse files
JeffBezansonKristofferC
authored andcommitted
work around #32087 by polling for I/O on windows inside thread loops (#32109)
(cherry picked from commit 4247a48)
1 parent b4ff156 commit ad5e60a

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
@@ -303,7 +303,11 @@ JL_DLLEXPORT jl_task_t *jl_task_get_next(jl_value_t *getsticky)
303303
}
304304
uv_loop_t *loop = jl_global_event_loop();
305305
loop->stop_flag = 0;
306+
#ifdef _OS_WINDOWS_
307+
uv_run(loop, UV_RUN_NOWAIT);
308+
#else
306309
uv_run(loop, UV_RUN_ONCE);
310+
#endif
307311
JL_UV_UNLOCK();
308312
}
309313
else {

0 commit comments

Comments
 (0)