summaryrefslogtreecommitdiff
path: root/include/ruby.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-23 14:09:28 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-24 11:43:21 +0900
commit6ed6b85ece8733518a7da0c3ec714f20d1102bf5 (patch)
treefc723fdf849cd2bb786cc4a9b4bf46a32b62390e /include/ruby.h
parentf755926ddd3b92248f1fcdf977bd8537bff1f1dd (diff)
downloadruby-6ed6b85ece8733518a7da0c3ec714f20d1102bf5.tar.gz
Expose atomic operation macros with RUBY prefix
Now we need atomic operations, which are lighter than mutex, more widely for extension libraries because of Ractor.
Diffstat (limited to 'include/ruby.h')
-rw-r--r--include/ruby.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby.h b/include/ruby.h
index d39a3c9646..31c1df3c5e 100644
--- a/include/ruby.h
+++ b/include/ruby.h
@@ -10,6 +10,7 @@
* modify this file, provided that the conditions mentioned in the
* file COPYING are met. Consult the file for details.
*/
+#define HAVE_RUBY_ATOMIC_H 1
#define HAVE_RUBY_DEBUG_H 1
#define HAVE_RUBY_DEFINES_H 1
#define HAVE_RUBY_ENCODING_H 1