Skip to content

Commit

Permalink
fix #31702, thread sitting in event loop outside thread region (#31709)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson authored Apr 13, 2019
1 parent 71b20a8 commit c4841ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,8 @@ JL_DLLEXPORT void jl_threading_run(jl_value_t *func)
jl_apply(args, 2);
}
_threadedregion -= 1;
// make sure no threads are sitting in the event loop
jl_wake_libuv();
JL_GC_POP();
jl_gc_unsafe_leave(ptls, gc_state);
}
Expand Down

0 comments on commit c4841ca

Please sign in to comment.