aboutsummaryrefslogtreecommitdiffstats
path: root/erts/include/internal/libatomic_ops/ethread.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2014-11-07 14:41:02 +0100
committerRickard Green <[email protected]>2014-11-10 14:20:01 +0100
commitd5a4eb5a9e24a07cb3653967ff91557c9a21ecb4 (patch)
tree1396ce6eb1792e3a4e4d174f9b26d6c45feca9c8 /erts/include/internal/libatomic_ops/ethread.h
parent9417f044ee3c291c2ea343c203aebdcc40597226 (diff)
downloadotp-d5a4eb5a9e24a07cb3653967ff91557c9a21ecb4.tar.gz
otp-d5a4eb5a9e24a07cb3653967ff91557c9a21ecb4.tar.bz2
otp-d5a4eb5a9e24a07cb3653967ff91557c9a21ecb4.zip
Improve usage of libatomic_ops for word size atomics
Use AO_fetch_compare_and_swap*() when present
Diffstat (limited to 'erts/include/internal/libatomic_ops/ethread.h')
-rw-r--r--erts/include/internal/libatomic_ops/ethread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/include/internal/libatomic_ops/ethread.h b/erts/include/internal/libatomic_ops/ethread.h
index e1fdd588bb..7375b73793 100644
--- a/erts/include/internal/libatomic_ops/ethread.h
+++ b/erts/include/internal/libatomic_ops/ethread.h
@@ -33,6 +33,8 @@
#define AO_USE_PENTIUM4_INSTRS
#endif
+#define ETHR_NATIVE_IMPL__ "libatomic_ops"
+
#include "atomic_ops.h"
#include "ethr_membar.h"
#include "ethr_atomic.h"