aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_threads.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2011-04-18 16:49:55 +0200
committerRickard Green <[email protected]>2011-06-14 11:40:20 +0200
commit0204e80cba378dfc1140a7f98d96705d470bddde (patch)
tree8cc07fe1797cd75a79b9ae07905baf145f21c1a6 /erts/emulator/beam/erl_threads.h
parent7f19af0423934f85c74ccb75546e5e3a6b6d10e8 (diff)
downloadotp-0204e80cba378dfc1140a7f98d96705d470bddde.tar.gz
otp-0204e80cba378dfc1140a7f98d96705d470bddde.tar.bz2
otp-0204e80cba378dfc1140a7f98d96705d470bddde.zip
Use new atomic API in runtime system
All uses of the old deprecated atomic API in the runtime system have been replaced with the use of the new atomic API. In a lot of places this change imply a relaxation of memory barriers used.
Diffstat (limited to 'erts/emulator/beam/erl_threads.h')
-rw-r--r--erts/emulator/beam/erl_threads.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/erts/emulator/beam/erl_threads.h b/erts/emulator/beam/erl_threads.h
index a2833b3580..9b897ffd24 100644
--- a/erts/emulator/beam/erl_threads.h
+++ b/erts/emulator/beam/erl_threads.h
@@ -781,40 +781,6 @@ ERTS_GLB_INLINE void erts_thr_sigwait(const sigset_t *set, int *sig);
#endif /* !USE_THREADS */
-#ifndef ERTS_NO_DEPRECATED_ATOMICS
-
-/* Deprecated functions to replace */
-
-#define erts_atomic_init erts_atomic_init_nob
-#define erts_atomic_set erts_atomic_set_nob
-#define erts_atomic_read erts_atomic_read_nob
-#define erts_atomic_inctest erts_atomic_inc_read_mb
-#define erts_atomic_dectest erts_atomic_dec_read_mb
-#define erts_atomic_inc erts_atomic_inc_mb
-#define erts_atomic_dec erts_atomic_dec_mb
-#define erts_atomic_addtest erts_atomic_add_read_mb
-#define erts_atomic_add erts_atomic_add_mb
-#define erts_atomic_xchg erts_atomic_xchg_mb
-#define erts_atomic_cmpxchg erts_atomic_cmpxchg_mb
-#define erts_atomic_bor erts_atomic_read_bor_mb
-#define erts_atomic_band erts_atomic_read_band_mb
-
-#define erts_atomic32_init erts_atomic32_init_nob
-#define erts_atomic32_set erts_atomic32_set_nob
-#define erts_atomic32_read erts_atomic32_read_nob
-#define erts_atomic32_inctest erts_atomic32_inc_read_mb
-#define erts_atomic32_dectest erts_atomic32_dec_read_mb
-#define erts_atomic32_inc erts_atomic32_inc_mb
-#define erts_atomic32_dec erts_atomic32_dec_mb
-#define erts_atomic32_addtest erts_atomic32_add_read_mb
-#define erts_atomic32_add erts_atomic32_add_mb
-#define erts_atomic32_xchg erts_atomic32_xchg_mb
-#define erts_atomic32_cmpxchg erts_atomic32_cmpxchg_mb
-#define erts_atomic32_bor erts_atomic32_read_bor_mb
-#define erts_atomic32_band erts_atomic32_read_band_mb
-
-#endif
-
#if ERTS_GLB_INLINE_INCL_FUNC_DEF
ERTS_GLB_INLINE void