summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2021-07-25 13:38:05 +0900
committernagachika <nagachika@ruby-lang.org>2021-07-25 13:49:53 +0900
commit95dc88c88869541dd0eccafd14924d78c8d7f427 (patch)
treef4ad43fffd779545d16d7d47106a25c341633eb5 /cont.c
parentdc7ad0287eff6e11c2d0f71d2a02e56fe172a0da (diff)
partially merge revision(s) 5f69a7f60467fa58c2f998daffab43e118bff36c: [Backport #17666]
Co-authored-by: Samuel Williams <@ioquatix> https://github.com/nagachika/ruby/pull/1/commits/2cee515f024f3295945f312cb6b052f972f9c93d
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cont.c b/cont.c
index a8250c3273..aad7612b25 100644
--- a/cont.c
+++ b/cont.c
@@ -1155,6 +1155,11 @@ VALUE rb_fiberptr_self(struct rb_fiber_struct *fiber)
return fiber->cont.self;
}
+unsigned int rb_fiberptr_blocking(struct rb_fiber_struct *fiber)
+{
+ return fiber->blocking;
+}
+
// This is used for root_fiber because other fibers call cont_init_mjit_cont through cont_new.
void
rb_fiber_init_mjit_cont(struct rb_fiber_struct *fiber)