3 // Copyright (C) 2008, 2009, 2010
4 // Free Software Foundation, Inc.
6 // This file is part of the GNU ISO C++ Library. This library is free
7 // software; you can redistribute it and/or modify it under the
8 // terms of the GNU General Public License as published by the
9 // Free Software Foundation; either version 3, or (at your option)
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
17 // Under Section 7 of GPL version 3, you are granted additional
18 // permissions described in the GCC Runtime Library Exception, version
19 // 3.1, as published by the Free Software Foundation.
21 // You should have received a copy of the GNU General Public License and
22 // a copy of the GCC Runtime Library Exception along with this program;
23 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24 // <http://www.gnu.org/licenses/>.
26 /** @file bits/atomicfwd_cxx.h
27 * This is an internal header file, included by other library headers.
28 * You should not attempt to use it directly.
33 #define _ATOMIC_MEMBER_ _M_i
39 template<typename _IntTp>
43 struct atomic_address;
49 template<typename _IntTp>
53 struct atomic_address;
59 using __atomic2::atomic_flag;
60 using __atomic2::atomic_bool;
61 using __atomic0::atomic_address;
62 using __atomic0::__atomic_base;
71 typedef __atomic_base<char> atomic_char;
74 typedef __atomic_base<signed char> atomic_schar;
77 typedef __atomic_base<unsigned char> atomic_uchar;
80 typedef __atomic_base<short> atomic_short;
83 typedef __atomic_base<unsigned short> atomic_ushort;
86 typedef __atomic_base<int> atomic_int;
89 typedef __atomic_base<unsigned int> atomic_uint;
92 typedef __atomic_base<long> atomic_long;
95 typedef __atomic_base<unsigned long> atomic_ulong;
98 typedef __atomic_base<long long> atomic_llong;
101 typedef __atomic_base<unsigned long long> atomic_ullong;
104 typedef __atomic_base<wchar_t> atomic_wchar_t;
107 typedef __atomic_base<char16_t> atomic_char16_t;
110 typedef __atomic_base<char32_t> atomic_char32_t;
112 template<typename _Tp>
117 _GLIBCXX_BEGIN_EXTERN_C