Fix experimental Fiber::Pool definition
Toplevel `Pool` is too generic, and `struct fiber_pool` does not seem compatible with `rb_fiber_t`.
This commit is contained in:
parent
0bcc3bd6ab
commit
e081f333fe
2
cont.c
2
cont.c
@ -3279,7 +3279,7 @@ Init_Cont(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RB_EXPERIMENTAL_FIBER_POOL
|
#ifdef RB_EXPERIMENTAL_FIBER_POOL
|
||||||
rb_cFiberPool = rb_define_class("Pool", rb_cFiber);
|
rb_cFiberPool = rb_define_class_under(rb_cFiber, "Pool", rb_cObject);
|
||||||
rb_define_alloc_func(rb_cFiberPool, fiber_pool_alloc);
|
rb_define_alloc_func(rb_cFiberPool, fiber_pool_alloc);
|
||||||
rb_define_method(rb_cFiberPool, "initialize", rb_fiber_pool_initialize, -1);
|
rb_define_method(rb_cFiberPool, "initialize", rb_fiber_pool_initialize, -1);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user