[vlc-commits] vlc_atomic: use std::atomic<> instead of std::atomic_base<>

Thomas Guillem git at videolan.org
Mon Jun 22 15:52:53 CEST 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jun 22 12:03:10 2015 +0200| [e8b683357b2ccc2bbd1ffbcb4783441a3620a6ea] | committer: Hugo Beauzée-Luyssen

vlc_atomic: use std::atomic<> instead of std::atomic_base<>

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
cf. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60940

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e8b683357b2ccc2bbd1ffbcb4783441a3620a6ea
---

 include/vlc_atomic.h |   75 +++++++++++++++++++++++++-------------------------
 1 file changed, 38 insertions(+), 37 deletions(-)

diff --git a/include/vlc_atomic.h b/include/vlc_atomic.h
index 82b1db4..72590c8 100644
--- a/include/vlc_atomic.h
+++ b/include/vlc_atomic.h
@@ -69,43 +69,44 @@ using std::memory_order_acq_rel;
 using std::memory_order_seq_cst;
 
 using std::atomic_flag;
-using std::atomic_bool;
-using std::atomic_char;
-using std::atomic_schar;
-using std::atomic_uchar;
-using std::atomic_short;
-using std::atomic_ushort;
-using std::atomic_int;
-using std::atomic_uint;
-using std::atomic_long;
-using std::atomic_ulong;
-using std::atomic_llong;
-using std::atomic_ullong;
-using std::atomic_char16_t;
-using std::atomic_char32_t;
-using std::atomic_wchar_t;
-using std::atomic_int_least8_t;
-using std::atomic_uint_least8_t;
-using std::atomic_int_least16_t;
-using std::atomic_uint_least16_t;
-using std::atomic_int_least32_t;
-using std::atomic_uint_least32_t;
-using std::atomic_int_least64_t;
-using std::atomic_uint_least64_t;
-using std::atomic_int_fast8_t;
-using std::atomic_uint_fast8_t;
-using std::atomic_int_fast16_t;
-using std::atomic_uint_fast16_t;
-using std::atomic_int_fast32_t;
-using std::atomic_uint_fast32_t;
-using std::atomic_int_fast64_t;
-using std::atomic_uint_fast64_t;
-using std::atomic_intptr_t;
-using std::atomic_uintptr_t;
-using std::atomic_size_t;
-using std::atomic_ptrdiff_t;
-using std::atomic_intmax_t;
-using std::atomic_uintmax_t;
+typedef std::atomic<bool> atomic_bool;
+typedef std::atomic<char> atomic_char;
+typedef std::atomic<signed char> atomic_schar;
+typedef std::atomic<unsigned char> atomic_uchar;
+typedef std::atomic<short> atomic_short;
+typedef std::atomic<unsigned short> atomic_ushort;
+typedef std::atomic<int> atomic_int;
+typedef std::atomic<unsigned int> atomic_uint;
+typedef std::atomic<long> atomic_long;
+typedef std::atomic<unsigned long> atomic_ulong;
+typedef std::atomic<long long> atomic_llong;
+typedef std::atomic<unsigned long long> atomic_ullong;
+typedef std::atomic<char16_t> atomic_char16_t;
+typedef std::atomic<char32_t> atomic_char32_t;
+typedef std::atomic<wchar_t> atomic_wchar_t;
+typedef std::atomic<int_least8_t> atomic_int_least8_t;
+typedef std::atomic<uint_least8_t> atomic_uint_least8_t;
+typedef std::atomic<int_least16_t> atomic_int_least16_t;
+typedef std::atomic<uint_least16_t> atomic_uint_least16_t;
+typedef std::atomic<int_least32_t> atomic_int_least32_t;
+typedef std::atomic<uint_least32_t> atomic_uint_least32_t;
+typedef std::atomic<int_least64_t> atomic_int_least64_t;
+typedef std::atomic<uint_least64_t> atomic_uint_least64_t;
+typedef std::atomic<int_fast8_t> atomic_int_fast8_t;
+typedef std::atomic<uint_fast8_t> atomic_uint_fast8_t;
+typedef std::atomic<int_fast16_t> atomic_int_fast16_t;
+typedef std::atomic<uint_fast16_t> atomic_uint_fast16_t;
+typedef std::atomic<int_fast32_t> atomic_int_fast32_t;
+typedef std::atomic<uint_fast32_t> atomic_uint_fast32_t;
+typedef std::atomic<int_fast64_t> atomic_int_fast64_t;
+typedef std::atomic<uint_fast64_t> atomic_uint_fast64_t;
+typedef std::atomic<intptr_t> atomic_intptr_t;
+typedef std::atomic<uintptr_t> atomic_uintptr_t;
+typedef std::atomic<size_t> atomic_size_t;
+typedef std::atomic<ptrdiff_t> atomic_ptrdiff_t;
+typedef std::atomic<intmax_t> atomic_intmax_t;
+typedef std::atomic<uintmax_t> atomic_uintmax_t;
+
 # endif /* C++ */
 
 typedef atomic_uint_least32_t vlc_atomic_float;



More information about the vlc-commits mailing list