summaryrefslogtreecommitdiffstats
path: root/runtime/atomic.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-23 12:38:44 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-23 12:38:44 +0100
commitc1e3a032b447487ced9873b98a015046778d2b04 (patch)
tree93dfe26b1843674aa86a5e1d86493a6a6406675d /runtime/atomic.h
parenta61e164a977ff17b90f9a301dacbc5a01aca7e7e (diff)
parenta6df6a1740956b72acb7cbf9d17a51635ea18dfc (diff)
downloadrsyslog-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.h3
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