summaryrefslogtreecommitdiff
path: root/ractor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ractor.rb')
-rw-r--r--ractor.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/ractor.rb b/ractor.rb
index c825fbe0da..936310d645 100644
--- a/ractor.rb
+++ b/ractor.rb
@@ -173,4 +173,10 @@ class Ractor
rb_ractor_shareable_p(obj) ? Qtrue : Qfalse;
}
end
+
+ def self.make_shareable obj
+ __builtin_cexpr! %q{
+ rb_ractor_make_shareable(obj);
+ }
+ end
end