diff options
-rw-r--r-- | internal/ractor.h | 6 | ||||
-rw-r--r-- | ractor_core.h | 2 | ||||
-rw-r--r-- | re.c | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/internal/ractor.h b/internal/ractor.h new file mode 100644 index 0000000000..eef5ffdb89 --- /dev/null +++ b/internal/ractor.h @@ -0,0 +1,6 @@ +#ifndef INTERNAL_RACTOR_H /*-*-C-*-vi:se ft=c:*/ +#define INTERNAL_RACTOR_H + +void rb_ractor_ensure_main_ractor(const char *msg); + +#endif /* INTERNAL_RACTOR_H */ diff --git a/ractor_core.h b/ractor_core.h index f0bdec212f..a3bc90febf 100644 --- a/ractor_core.h +++ b/ractor_core.h @@ -185,8 +185,6 @@ 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); @@ -20,8 +20,8 @@ #include "internal/imemo.h" #include "internal/re.h" #include "internal/string.h" +#include "internal/ractor.h" #include "internal/variable.h" -#include "ractor_core.h" #include "regint.h" #include "ruby/encoding.h" #include "ruby/re.h" |