summaryrefslogtreecommitdiff
path: root/include/ruby/ractor.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-12-24 10:59:27 +0900
committerKoichi Sasada <ko1@atdot.net>2020-12-24 14:28:47 +0900
commit6f29716f9ffb710af7f344839ec67ef2b8a48ab2 (patch)
tree296e34994f4670acfe02bca27e5a4864629a5248 /include/ruby/ractor.h
parent1e215a66d26d56befab4fbb72e1d953879411955 (diff)
shareable_constant_value: experimental_copy
"experimental_everything" makes the assigned value, it means the assignment change the state of assigned value. "experimental_copy" tries to make a deep copy and make copyied object sharable.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3989
Diffstat (limited to 'include/ruby/ractor.h')
-rw-r--r--include/ruby/ractor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/ractor.h b/include/ruby/ractor.h
index 327d4f4126..239df9c04c 100644
--- a/include/ruby/ractor.h
+++ b/include/ruby/ractor.h
@@ -61,4 +61,7 @@ rb_ractor_shareable_p(VALUE obj)
}
}
+VALUE rb_ractor_make_shareable(VALUE obj);
+VALUE rb_ractor_make_shareable_copy(VALUE obj);
+
#endif /* RUBY_RACTOR_H */