summaryrefslogtreecommitdiff
path: root/regint.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 07:30:44 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 07:30:44 (GMT)
commitb3377eaa1360a89db3adb655c1412b80ae5bc2e4 (patch)
tree1a3bba51379b3c81dfa382dacf64853f27ab7633 /regint.h
parent303cd88d408b7f8b79b0580cf3d552d6e291f5df (diff)
Revert r52995
revert slow atomic operations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regint.h')
-rw-r--r--regint.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/regint.h b/regint.h
index 79867f7..9fda550 100644
--- a/regint.h
+++ b/regint.h
@@ -95,7 +95,6 @@
#ifndef RUBY_DEFINES_H
#include "ruby/ruby.h"
-#include "ruby_atomic.h"
#undef xmalloc
#undef xrealloc
#undef xcalloc
@@ -239,10 +238,6 @@ extern pthread_mutex_t gOnigMutex;
#define ONIG_STATE_INC(reg) (reg)->state++
#define ONIG_STATE_DEC(reg) (reg)->state--
-#if SIZEOF_ATOMIC_T == SIZEOF_INT
-#define ONIG_STATE_INC_THREAD(reg) (ATOMIC_INC((reg)->state))
-#define ONIG_STATE_DEC_THREAD(reg) (ATOMIC_DEC((reg)->state))
-#else
#define ONIG_STATE_INC_THREAD(reg) do {\
THREAD_ATOMIC_START;\
(reg)->state++;\
@@ -253,7 +248,6 @@ extern pthread_mutex_t gOnigMutex;
(reg)->state--;\
THREAD_ATOMIC_END;\
} while(0)
-#endif
#else
#define ONIG_STATE_INC(reg) /* Nothing */
#define ONIG_STATE_DEC(reg) /* Nothing */