Skip to content
Snippets Groups Projects
Commit 26bbe633 authored by Lars Kanis's avatar Lars Kanis
Browse files

Set g_fxrb_thread_has_gvl on callback side, to track GVL state correctly.

parent 5c6b788d
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,9 @@ extern __thread int g_fxrb_thread_has_gvl;
struct gvl_wrapper_##name##_##paramcount##_params<firstparamtype FOR_EACH_PARAM_OF_##name##_##paramcount(DEFINE_PARAM_LIST5)> params = { \
{firstparamname FOR_EACH_PARAM_OF_##name##_##paramcount(DEFINE_PARAM_LIST1)}, when_non_void((rettype)0) \
}; \
g_fxrb_thread_has_gvl = 1; \
rb_thread_call_with_gvl(gvl_##name##_##paramcount##_skeleton<firstparamtype FOR_EACH_PARAM_OF_##name##_##paramcount(DEFINE_PARAM_LIST5)>, &params); \
g_fxrb_thread_has_gvl = 0; \
when_non_void( return params.retval; ) \
} \
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment