summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorSamuel Williams <[email protected]>2024-10-31 17:26:37 +1300
committer<[email protected]>2024-10-31 17:26:37 +1300
commit87fb44dff6409a19d12052cf0fc07ba80a4c45ac ()
tree1446cd9390356ae660c50ef7ae877bc57af8d567 /thread.c
parent550ac2f2edc07d1b63e3755233df0758a652b53f (diff)
Introduce Fiber Scheduler `blocking_region` hook. (#11963)
Notes: Merged-By: ioquatix <[email protected]>
-rw-r--r--thread.c12
1 files changed, 12 insertions, 0 deletions
@@ -1523,6 +1523,18 @@ rb_nogvl(void *(*func)(void *), void *data1,
rb_unblock_function_t *ubf, void *data2,
int flags)
{
void *val = 0;
rb_execution_context_t *ec = GET_EC();
rb_thread_t *th = rb_ec_thread_ptr(ec);