summaryrefslogtreecommitdiffstats
path: root/runtime/atomic.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-05 09:54:42 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-05 09:54:42 +0100
commit40be6cb6e7a167402039d24e047c94bdb19bd22e (patch)
treea254249ee29f09c88ee82990d2049ede0ffabb07 /runtime/atomic.h
parent424de9fb94725769cfcbb0f0a5937781376c4e73 (diff)
parent396e211e5cfd195b7135947d425b089a0447fa88 (diff)
downloadrsyslog-40be6cb6e7a167402039d24e047c94bdb19bd22e.tar.gz
rsyslog-40be6cb6e7a167402039d24e047c94bdb19bd22e.tar.xz
rsyslog-40be6cb6e7a167402039d24e047c94bdb19bd22e.zip
Merge branch 'v4-stable-solaris' into master-solaris
Conflicts: ChangeLog configure.ac doc/manual.html tests/rt-init.c
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 b507b769..9a0d9e22 100644
--- a/runtime/atomic.h
+++ b/runtime/atomic.h
@@ -67,6 +67,9 @@
# 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 /* #ifndef INCLUDED_ATOMIC_H */