ext/monitor is ractor-safe
This commit is contained in:
parent
c1461c927b
commit
846c4b03b8
@ -203,6 +203,10 @@ monitor_synchronize(VALUE monitor)
|
|||||||
void
|
void
|
||||||
Init_monitor(void)
|
Init_monitor(void)
|
||||||
{
|
{
|
||||||
|
#if HAVE_RB_EXT_RACTOR_SAFE
|
||||||
|
rb_ext_ractor_safe(true);
|
||||||
|
#endif
|
||||||
|
|
||||||
VALUE rb_cMonitor = rb_define_class("Monitor", rb_cObject);
|
VALUE rb_cMonitor = rb_define_class("Monitor", rb_cObject);
|
||||||
rb_define_alloc_func(rb_cMonitor, monitor_alloc);
|
rb_define_alloc_func(rb_cMonitor, monitor_alloc);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user