aboutsummaryrefslogtreecommitdiffstats
path: root/ractor_core.h
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2022-03-24 14:14:07 +0900
committerYusuke Endoh <mame@ruby-lang.org>2022-03-30 16:50:46 +0900
commit23530d68cb04aed9c2f59a050523b0193ee2d0c1 (patch)
treed56d750e74bed919b4099f880e06f759eb451015 /ractor_core.h
parenta94002115beaf989aec4c9b2a746ac8d19440e57 (diff)
downloadruby-23530d68cb04aed9c2f59a050523b0193ee2d0c1.tar.gz
ractor.c: Add a helper function to ensure the context is a main ractor
Diffstat (limited to 'ractor_core.h')
-rw-r--r--ractor_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ractor_core.h b/ractor_core.h
index a3bc90febf..f0bdec212f 100644
--- a/ractor_core.h
+++ b/ractor_core.h
@@ -185,6 +185,8 @@ void rb_ractor_atfork(rb_vm_t *vm, rb_thread_t *th);
VALUE rb_ractor_ensure_shareable(VALUE obj, VALUE name);
+void rb_ractor_ensure_main_ractor(const char *msg);
+
RUBY_SYMBOL_EXPORT_BEGIN
bool rb_ractor_shareable_p_continue(VALUE obj);