diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-02 06:42:36 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-02 06:42:36 +0000 |
commit | eaad044b56eebdffe57d46a7c233ed144b541f9f (patch) | |
tree | c8c183fd2c9ba672d00d6e0814535fd25640732f /atomic.h | |
parent | f7de219916f9092ac4667820bd480dd1d8a0e4a0 (diff) | |
download | rsyslog-eaad044b56eebdffe57d46a7c233ed144b541f9f.tar.gz rsyslog-eaad044b56eebdffe57d46a7c233ed144b541f9f.tar.xz rsyslog-eaad044b56eebdffe57d46a7c233ed144b541f9f.zip |
disabled atomic operations for the time being because they introduce some
cross-platform trouble - need to see how to fix this in the best
possible way
Diffstat (limited to 'atomic.h')
-rw-r--r-- | atomic.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -36,8 +36,15 @@ #define INCLUDED_ATOMIC_H /* set the following to 1 if we have atomic operations (and #undef it otherwise) */ -#define DO_HAVE_ATOMICS 1 +/* #define DO_HAVE_ATOMICS 1 */ +/* for this release, we disable atomic calls because there seem to be some + * portability problems and we can not fix that without destabilizing the build. + * They simply came in too late. -- rgerhards, 2008-04-02 + */ +/* make sure they are not used! #define ATOMIC_INC(data) ((void) __sync_fetch_and_add(&data, 1)) #define ATOMIC_DEC_AND_FETCH(data) __sync_sub_and_fetch(&data, 1) +*/ +#define ATOMIC_INC(data) (++(data)) #endif /* #ifndef INCLUDED_ATOMIC_H */ |