diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2022-03-30 14:46:18 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2022-03-30 16:50:46 +0900 |
commit | 5df2589b64127e86247de26d4db727a62764a869 (patch) | |
tree | 42b4c91ac4a0bce52a5c50474c314b82ac026009 | |
parent | 2ade40276be9f60ed06e7011b41a4c90f03e59b4 (diff) | |
download | ruby-5df2589b64127e86247de26d4db727a62764a869.tar.gz |
internal/ractor.h: Added
Currently it has only one function prototype.
-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" |