aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-01-06 15:30:56 +0900
committerKoichi Sasada <ko1@atdot.net>2021-01-06 16:03:09 +0900
commitd968829afa19c31e9461fd545cbd21250778ce6e (patch)
tree8660cc24f35fa3cf3744818cef3569355cb3d51a /vm_core.h
parentd9fdca81ac0e4e98314b385b2f245951aaccd50c (diff)
downloadruby-d968829afa19c31e9461fd545cbd21250778ce6e.tar.gz
expose some C-APIs for ractor
expose some C-APIs to try to make ractor utilities on external gems. * add * rb_ractor_local_storage_value_lookup() to check availability * expose * rb_ractor_make_shareable() * rb_ractor_make_shareable_copy() * rb_proc_isolate() (not public) * rb_proc_isolate_bang() (not public) * rb_proc_ractor_make_shareable() (not public)
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index cfce3af59d..5f8d4ab876 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -1085,9 +1085,11 @@ typedef struct {
unsigned int is_isolated: 1; /* bool */
} rb_proc_t;
+RUBY_SYMBOL_EXPORT_BEGIN
VALUE rb_proc_isolate(VALUE self);
VALUE rb_proc_isolate_bang(VALUE self);
VALUE rb_proc_ractor_make_shareable(VALUE self);
+RUBY_SYMBOL_EXPORT_END
typedef struct {
VALUE flags; /* imemo header */