summaryrefslogtreecommitdiff
path: root/ractor.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-11-17 16:40:47 +0900
committerKoichi Sasada <ko1@atdot.net>2020-11-18 03:52:41 +0900
commit5e3259ea7490a2542d78c433eb8c9d44c7819e61 (patch)
tree1a280e725a2c66ca776086661e3b707fd73f4577 /ractor.c
parent0683912db888b0421ce4c40ad450ccf75ad7e3f4 (diff)
fix public interface
To make some kind of Ractor related extensions, some functions should be exposed. * include/ruby/thread_native.h * rb_native_mutex_* * rb_native_cond_* * include/ruby/ractor.h * RB_OBJ_SHAREABLE_P(obj) * rb_ractor_shareable_p(obj) * rb_ractor_std*() * rb_cRactor and rm ractor_pub.h and rename srcdir/ractor.h to srcdir/ractor_core.h (to avoid conflict with include/ruby/ractor.h)
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3775
Diffstat (limited to 'ractor.c')
-rw-r--r--ractor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ractor.c b/ractor.c
index 1e32c1b95e..226c9bbf6f 100644
--- a/ractor.c
+++ b/ractor.c
@@ -2,10 +2,11 @@
#include "ruby/ruby.h"
#include "ruby/thread.h"
+#include "ruby/ractor.h"
#include "ruby/thread_native.h"
#include "vm_core.h"
#include "vm_sync.h"
-#include "ractor.h"
+#include "ractor_core.h"
#include "internal/complex.h"
#include "internal/error.h"
#include "internal/hash.h"
@@ -14,7 +15,7 @@
#include "variable.h"
#include "gc.h"
-static VALUE rb_cRactor;
+VALUE rb_cRactor;
static VALUE rb_eRactorError;
static VALUE rb_eRactorRemoteError;
static VALUE rb_eRactorMovedError;