summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-05 08:27:26 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-05 08:27:26 +0100
commit396e211e5cfd195b7135947d425b089a0447fa88 (patch)
tree00ac6f97ac5cd2ff96d009804c75f71f44b83ec4 /runtime
parent56764b912ea944a0abc7d92429d7520c2247cdd9 (diff)
downloadrsyslog-396e211e5cfd195b7135947d425b089a0447fa88.tar.gz
rsyslog-396e211e5cfd195b7135947d425b089a0447fa88.tar.xz
rsyslog-396e211e5cfd195b7135947d425b089a0447fa88.zip
enabled compilation by using "racy" replacements for atomic instructions
... but this is not considered a real solution. For some of the uses, it may acutally be sufficient, but the implications need to be analyzed in detail.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/atomic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/atomic.h b/runtime/atomic.h
index d5aaf56b..62ceb8b3 100644
--- a/runtime/atomic.h
+++ b/runtime/atomic.h
@@ -66,6 +66,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 */