summaryrefslogtreecommitdiffstats
path: root/runtime/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/atomic.h')
-rw-r--r--runtime/atomic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/atomic.h b/runtime/atomic.h
index 4cb832f2..f5ae9357 100644
--- a/runtime/atomic.h
+++ b/runtime/atomic.h
@@ -50,6 +50,7 @@
# 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
/* note that we gained parctical proof that theoretical problems DO occur
* if we do not properly address them. See this blog post for details: