[前][次][番号順一覧][スレッド一覧]

ruby-changes:71560

From: Yusuke <ko1@a...>
Date: Wed, 30 Mar 2022 16:51:09 +0900 (JST)
Subject: [ruby-changes:71560] 5df2589b64 (master): internal/ractor.h: Added

https://git.ruby-lang.org/ruby.git/commit/?id=5df2589b64

From 5df2589b64127e86247de26d4db727a62764a869 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Wed, 30 Mar 2022 14:46:18 +0900
Subject: internal/ractor.h: Added

Currently it has only one function prototype.
---
 internal/ractor.h | 6 ++++++
 ractor_core.h     | 2 --
 re.c              | 2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)
 create mode 100644 internal/ractor.h

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 @@ https://github.com/ruby/ruby/blob/trunk/internal/ractor.h#L1
+#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); https://github.com/ruby/ruby/blob/trunk/ractor_core.h#L185
 
 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);
 
diff --git a/re.c b/re.c
index bcd13ddf77..8666e449ec 100644
--- a/re.c
+++ b/re.c
@@ -20,8 +20,8 @@ https://github.com/ruby/ruby/blob/trunk/re.c#L20
 #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"
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]