From 0436f1e15a8e79ffef5ea412ac1312cbf9f063e6 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 1 Dec 2022 23:00:33 +1300 Subject: Introduce `Fiber#storage` for inheritable fiber-scoped variables. (#6612) --- internal/cont.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal') diff --git a/internal/cont.h b/internal/cont.h index acac0254d3..c3b091668a 100644 --- a/internal/cont.h +++ b/internal/cont.h @@ -22,6 +22,9 @@ void rb_jit_cont_init(void); void rb_jit_cont_each_iseq(rb_iseq_callback callback, void *data); void rb_jit_cont_finish(void); +// Copy locals from the current execution to the specified fiber. +VALUE rb_fiber_inherit_storage(struct rb_execution_context_struct *ec, struct rb_fiber_struct *fiber); + VALUE rb_fiberptr_self(struct rb_fiber_struct *fiber); unsigned int rb_fiberptr_blocking(struct rb_fiber_struct *fiber); struct rb_execution_context_struct * rb_fiberptr_get_ec(struct rb_fiber_struct *fiber); -- cgit v1.2.3