summaryrefslogtreecommitdiffstats
path: root/runtime/atomic.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-01-29 11:58:26 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-01-29 11:58:26 +0100
commit14d5cc7f55ffc7980c0bb73f50b53da175271358 (patch)
tree1ae6ead0da00f75ad288b5e238c527673b57a651 /runtime/atomic.h
parent4c7ab3bcc6db2aaddd0515944f282e3dd6ab056a (diff)
downloadrsyslog-14d5cc7f55ffc7980c0bb73f50b53da175271358.tar.gz
rsyslog-14d5cc7f55ffc7980c0bb73f50b53da175271358.tar.xz
rsyslog-14d5cc7f55ffc7980c0bb73f50b53da175271358.zip
fixed atomic operations
Diffstat (limited to 'runtime/atomic.h')
-rw-r--r--runtime/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/atomic.h b/runtime/atomic.h
index 7ad8e2e4..ec7acb8c 100644
--- a/runtime/atomic.h
+++ b/runtime/atomic.h
@@ -47,7 +47,7 @@
# define ATOMIC_FETCH_32BIT(data) ((unsigned) __sync_fetch_and_and(&(data), 0xffffffff))
# define ATOMIC_STORE_1_TO_32BIT(data) __sync_lock_test_and_set(&(data), 1)
#else
-# warning "atomic builtins not available, using nul operations"
+# warning "atomic builtins not available, using nul operations - rsyslogd will probably be racy!"
# define ATOMIC_INC(data) (++(data))
# define ATOMIC_DEC(data) (--(data))
# define ATOMIC_DEC_AND_FETCH(data) (--(data))