diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-12-23 14:09:28 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-12-24 11:43:21 +0900 |
commit | 6ed6b85ece8733518a7da0c3ec714f20d1102bf5 () | |
tree | fc723fdf849cd2bb786cc4a9b4bf46a32b62390e /include | |
parent | f755926ddd3b92248f1fcdf977bd8537bff1f1dd (diff) |
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.
Notes: Merged: https://.com/ruby/ruby/pull/3983
-rw-r--r-- | include/ruby.h | 1 | ||||
-rw-r--r-- | include/ruby/atomic.h | 236 |
2 files changed, 237 insertions, 0 deletions
@@ -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_DEBUG_H 1 #define HAVE_RUBY_DEFINES_H 1 #define HAVE_RUBY_ENCODING_H 1 @@ -0,0 +1,236 @@ |