summaryrefslogtreecommitdiffstats
path: root/runtime/atomic.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-07-17 19:59:22 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-07-17 19:59:22 +0200
commitac186f1c3d6d4a8fa4230a205c7fce91b3fef535 (patch)
treed8e52e481c1c7903d21bbc5e4383299062e85061 /runtime/atomic.h
parent4c9eded44dbae1701bb3b8f255865892b19e7f72 (diff)
downloadrsyslog-ac186f1c3d6d4a8fa4230a205c7fce91b3fef535.tar.gz
rsyslog-ac186f1c3d6d4a8fa4230a205c7fce91b3fef535.tar.xz
rsyslog-ac186f1c3d6d4a8fa4230a205c7fce91b3fef535.zip
removed mutex locks
... by utilizing that we need to modify a state variable only in a sequential way during shutdown.
Diffstat (limited to 'runtime/atomic.h')
-rw-r--r--runtime/atomic.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/runtime/atomic.h b/runtime/atomic.h
index f0733f09..b507b769 100644
--- a/runtime/atomic.h
+++ b/runtime/atomic.h
@@ -51,7 +51,6 @@
# define ATOMIC_STORE_1_TO_32BIT(data) __sync_lock_test_and_set(&(data), 1)
# define ATOMIC_STORE_0_TO_INT(data) __sync_fetch_and_and(&(data), 0)
# define ATOMIC_STORE_1_TO_INT(data) __sync_fetch_and_or(&(data), 1)
-# define ATOMIC_STORE_INT_TO_INT(data, val) __sync_fetch_and_or(&(data), (val))
# define ATOMIC_CAS(data, oldVal, newVal) __sync_bool_compare_and_swap(&(data), (oldVal), (newVal));
# define ATOMIC_CAS_VAL(data, oldVal, newVal) __sync_val_compare_and_swap(&(data), (oldVal), (newVal));
#else