diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-23 12:38:44 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-23 12:38:44 +0100 |
commit | c1e3a032b447487ced9873b98a015046778d2b04 (patch) | |
tree | 93dfe26b1843674aa86a5e1d86493a6a6406675d /runtime/atomic.h | |
parent | a61e164a977ff17b90f9a301dacbc5a01aca7e7e (diff) | |
parent | a6df6a1740956b72acb7cbf9d17a51635ea18dfc (diff) | |
download | rsyslog-c1e3a032b447487ced9873b98a015046778d2b04.tar.gz rsyslog-c1e3a032b447487ced9873b98a015046778d2b04.tar.xz rsyslog-c1e3a032b447487ced9873b98a015046778d2b04.zip |
Merge branch 'master-solaris'
Diffstat (limited to 'runtime/atomic.h')
-rw-r--r-- | runtime/atomic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/atomic.h b/runtime/atomic.h index 51b14e18..f1152daf 100644 --- a/runtime/atomic.h +++ b/runtime/atomic.h @@ -183,6 +183,9 @@ void atomicSemExit(void); # define ATOMIC_DEC_AND_FETCH(data) (--(data)) # define ATOMIC_FETCH_32BIT(data) (data) # define ATOMIC_STORE_1_TO_32BIT(data) (data) = 1 +# define ATOMIC_STORE_1_TO_INT(data) (data) = 1 +# define ATOMIC_STORE_0_TO_INT(data) (data) = 0 +# define ATOMIC_CAS_VAL(data, oldVal, newVal) (data) = (newVal) #endif #endif |