ruby-changes:64356
From: Koichi <ko1@a...>
Date: Sun, 20 Dec 2020 04:23:18 +0900 (JST)
Subject: [ruby-changes:64356] 846c4b03b8 (master): ext/monitor is ractor-safe
https://git.ruby-lang.org/ruby.git/commit/?id=846c4b03b8 From 846c4b03b8e9ff788f355f1bcd12e75715288e95 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Sun, 20 Dec 2020 04:21:54 +0900 Subject: ext/monitor is ractor-safe diff --git a/ext/monitor/monitor.c b/ext/monitor/monitor.c index 256fc4d..627d821 100644 --- a/ext/monitor/monitor.c +++ b/ext/monitor/monitor.c @@ -203,6 +203,10 @@ monitor_synchronize(VALUE monitor) https://github.com/ruby/ruby/blob/trunk/ext/monitor/monitor.c#L203 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); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/