diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-05 08:27:26 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-05 08:27:26 +0100 |
commit | 396e211e5cfd195b7135947d425b089a0447fa88 (patch) | |
tree | 00ac6f97ac5cd2ff96d009804c75f71f44b83ec4 /runtime/atomic.h | |
parent | 56764b912ea944a0abc7d92429d7520c2247cdd9 (diff) | |
download | rsyslog-396e211e5cfd195b7135947d425b089a0447fa88.tar.gz rsyslog-396e211e5cfd195b7135947d425b089a0447fa88.tar.bz2 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/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 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 */ |