mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ext/monitor is ractor-safe
This commit is contained in:
parent
c1461c927b
commit
846c4b03b8
1 changed files with 4 additions and 0 deletions
|
@ -203,6 +203,10 @@ monitor_synchronize(VALUE 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);
|
||||
rb_define_alloc_func(rb_cMonitor, monitor_alloc);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue