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 df41dae commit ff9a0d1Copy full SHA for ff9a0d1
otherlibs/systhreads/st_stubs.c
@@ -880,6 +880,8 @@ CAMLprim value caml_thread_yield(value unit) /* ML */
880
caml_raise_async_if_exception(caml_process_pending_signals_exn(),
881
"signal handler");
882
caml_thread_save_runtime_state();
883
+ /* caml_locking_scheme may have changed in caml_process_pending_signals_exn */
884
+ s = atomic_load(&caml_locking_scheme);
885
s->yield(s->context);
886
if (atomic_load(&caml_locking_scheme) != s) {
887
/* The lock we have is no longer the runtime lock */
0 commit comments