diff options
author | Rickard Green <[email protected]> | 2011-04-18 16:49:55 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2011-06-14 11:40:20 +0200 |
commit | 0204e80cba378dfc1140a7f98d96705d470bddde (patch) | |
tree | 8cc07fe1797cd75a79b9ae07905baf145f21c1a6 /erts/emulator/beam/erl_smp.h | |
parent | 7f19af0423934f85c74ccb75546e5e3a6b6d10e8 (diff) | |
download | otp-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_smp.h')
-rw-r--r-- | erts/emulator/beam/erl_smp.h | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/erts/emulator/beam/erl_smp.h b/erts/emulator/beam/erl_smp.h index 797378b315..a89ddfbcc1 100644 --- a/erts/emulator/beam/erl_smp.h +++ b/erts/emulator/beam/erl_smp.h @@ -1,7 +1,7 @@ /* * %CopyrightBegin% * - * Copyright Ericsson AB 2005-2010. All Rights Reserved. + * Copyright Ericsson AB 2005-2011. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in @@ -629,41 +629,6 @@ ERTS_GLB_INLINE void erts_smp_thr_sigwait(const sigset_t *set, int *sig); #endif /* !ERTS_SMP */ -#ifndef ERTS_NO_DEPRECATED_ATOMICS - -/* Deprecated functions to replace */ - -#define erts_smp_atomic_init erts_smp_atomic_init_nob -#define erts_smp_atomic_set erts_smp_atomic_set_nob -#define erts_smp_atomic_read erts_smp_atomic_read_nob -#define erts_smp_atomic_inctest erts_smp_atomic_inc_read_mb -#define erts_smp_atomic_dectest erts_smp_atomic_dec_read_mb -#define erts_smp_atomic_inc erts_smp_atomic_inc_mb -#define erts_smp_atomic_dec erts_smp_atomic_dec_mb -#define erts_smp_atomic_addtest erts_smp_atomic_add_read_mb -#define erts_smp_atomic_add erts_smp_atomic_add_mb -#define erts_smp_atomic_xchg erts_smp_atomic_xchg_mb -#define erts_smp_atomic_cmpxchg erts_smp_atomic_cmpxchg_mb -#define erts_smp_atomic_bor erts_smp_atomic_read_bor_mb -#define erts_smp_atomic_band erts_smp_atomic_read_band_mb - -#define erts_smp_atomic32_init erts_smp_atomic32_init_nob -#define erts_smp_atomic32_set erts_smp_atomic32_set_nob -#define erts_smp_atomic32_read erts_smp_atomic32_read_nob -#define erts_smp_atomic32_inctest erts_smp_atomic32_inc_read_mb -#define erts_smp_atomic32_dectest erts_smp_atomic32_dec_read_mb -#define erts_smp_atomic32_inc erts_smp_atomic32_inc_mb -#define erts_smp_atomic32_dec erts_smp_atomic32_dec_mb -#define erts_smp_atomic32_addtest erts_smp_atomic32_add_read_mb -#define erts_smp_atomic32_add erts_smp_atomic32_add_mb -#define erts_smp_atomic32_xchg erts_smp_atomic32_xchg_mb -#define erts_smp_atomic32_cmpxchg erts_smp_atomic32_cmpxchg_mb -#define erts_smp_atomic32_bor erts_smp_atomic32_read_bor_mb -#define erts_smp_atomic32_band erts_smp_atomic32_read_band_mb - -#endif - - #if ERTS_GLB_INLINE_INCL_FUNC_DEF ERTS_GLB_INLINE void |