зеркало из https://github.com/github/ruby.git
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:
Родитель
0bcc3bd6ab
Коммит
e081f333fe
2
cont.c
2
cont.c
|
@ -3279,7 +3279,7 @@ Init_Cont(void)
|
|||
#endif
|
||||
|
||||
#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_method(rb_cFiberPool, "initialize", rb_fiber_pool_initialize, -1);
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче