Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > c74ab286c3d46f9b82671d206e43a74b > files > 779

libstdc++-docs-4.6.3-2.fc15.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libstdc++: atomic_base.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libstdc++</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00758.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">atomic_base.h</div>  </div>
</div>
<div class="contents">
<a href="a00758.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- C++ -*- header.</span>
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 <span class="comment">// Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.</span>
<a name="l00004"></a>00004 <span class="comment">//</span>
<a name="l00005"></a>00005 <span class="comment">// This file is part of the GNU ISO C++ Library.  This library is free</span>
<a name="l00006"></a>00006 <span class="comment">// software; you can redistribute it and/or modify it under the</span>
<a name="l00007"></a>00007 <span class="comment">// terms of the GNU General Public License as published by the</span>
<a name="l00008"></a>00008 <span class="comment">// Free Software Foundation; either version 3, or (at your option)</span>
<a name="l00009"></a>00009 <span class="comment">// any later version.</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="comment">// This library is distributed in the hope that it will be useful,</span>
<a name="l00012"></a>00012 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00013"></a>00013 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00014"></a>00014 <span class="comment">// GNU General Public License for more details.</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="comment">// Under Section 7 of GPL version 3, you are granted additional</span>
<a name="l00017"></a>00017 <span class="comment">// permissions described in the GCC Runtime Library Exception, version</span>
<a name="l00018"></a>00018 <span class="comment">// 3.1, as published by the Free Software Foundation.</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="comment">// You should have received a copy of the GNU General Public License and</span>
<a name="l00021"></a>00021 <span class="comment">// a copy of the GCC Runtime Library Exception along with this program;</span>
<a name="l00022"></a>00022 <span class="comment">// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see</span>
<a name="l00023"></a>00023 <span class="comment">// &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00024"></a>00024 <span class="comment"></span>
<a name="l00025"></a>00025 <span class="comment">/** @file bits/atomic_base.h</span>
<a name="l00026"></a>00026 <span class="comment"> *  This is an internal header file, included by other library headers.</span>
<a name="l00027"></a>00027 <span class="comment"> *  Do not attempt to use it directly. @headername{atomic}</span>
<a name="l00028"></a>00028 <span class="comment"> */</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="preprocessor">#ifndef _GLIBCXX_ATOMIC_BASE_H</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define _GLIBCXX_ATOMIC_BASE_H 1</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a>00033 <span class="preprocessor">#pragma GCC system_header</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;<a class="code" href="a00781.html">bits/c++config.h</a>&gt;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="keyword">namespace </span>std _GLIBCXX_VISIBILITY(default)
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041 _GLIBCXX_BEGIN_NAMESPACE_VERSION
<a name="l00042"></a>00042 <span class="comment"></span>
<a name="l00043"></a>00043 <span class="comment">  /**</span>
<a name="l00044"></a>00044 <span class="comment">   * @defgroup atomics Atomics</span>
<a name="l00045"></a>00045 <span class="comment">   *</span>
<a name="l00046"></a>00046 <span class="comment">   * Components for performing atomic operations.</span>
<a name="l00047"></a>00047 <span class="comment">   * @{</span>
<a name="l00048"></a>00048 <span class="comment">   */</span>
<a name="l00049"></a>00049 <span class="comment"></span>
<a name="l00050"></a>00050 <span class="comment">  /// Enumeration for memory_order</span>
<a name="l00051"></a><a class="code" href="a01188.html#gab4f8c60de95c10793a8e3e27fcb800d9">00051</a> <span class="comment"></span>  <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="a01188.html#gab4f8c60de95c10793a8e3e27fcb800d9" title="Enumeration for memory_order.">memory_order</a>
<a name="l00052"></a>00052     {
<a name="l00053"></a>00053       memory_order_relaxed,
<a name="l00054"></a>00054       memory_order_consume,
<a name="l00055"></a>00055       memory_order_acquire,
<a name="l00056"></a>00056       memory_order_release,
<a name="l00057"></a>00057       memory_order_acq_rel,
<a name="l00058"></a>00058       memory_order_seq_cst
<a name="l00059"></a>00059     } <a class="code" href="a01188.html#gab4f8c60de95c10793a8e3e27fcb800d9" title="Enumeration for memory_order.">memory_order</a>;
<a name="l00060"></a>00060 
<a name="l00061"></a>00061   <span class="keyword">inline</span> <a class="code" href="a01188.html#gab4f8c60de95c10793a8e3e27fcb800d9" title="Enumeration for memory_order.">memory_order</a>
<a name="l00062"></a>00062   __calculate_memory_order(<a class="code" href="a01188.html#gab4f8c60de95c10793a8e3e27fcb800d9" title="Enumeration for memory_order.">memory_order</a> __m)
<a name="l00063"></a>00063   {
<a name="l00064"></a>00064     <span class="keyword">const</span> <span class="keywordtype">bool</span> __cond1 = __m == memory_order_release;
<a name="l00065"></a>00065     <span class="keyword">const</span> <span class="keywordtype">bool</span> __cond2 = __m == memory_order_acq_rel;
<a name="l00066"></a>00066     <a class="code" href="a01188.html#gab4f8c60de95c10793a8e3e27fcb800d9" title="Enumeration for memory_order.">memory_order</a> __mo1(__cond1 ? memory_order_relaxed : __m);
<a name="l00067"></a>00067     <a class="code" href="a01188.html#gab4f8c60de95c10793a8e3e27fcb800d9" title="Enumeration for memory_order.">memory_order</a> __mo2(__cond2 ? memory_order_acquire : __mo1);
<a name="l00068"></a>00068     <span class="keywordflow">return</span> __mo2;
<a name="l00069"></a>00069   }
<a name="l00070"></a>00070 
<a name="l00071"></a>00071   <span class="keywordtype">void</span>
<a name="l00072"></a>00072   atomic_thread_fence(<a class="code" href="a01188.html#gab4f8c60de95c10793a8e3e27fcb800d9" title="Enumeration for memory_order.">memory_order</a>);
<a name="l00073"></a>00073 
<a name="l00074"></a>00074   <span class="keywordtype">void</span>
<a name="l00075"></a>00075   atomic_signal_fence(<a class="code" href="a01188.html#gab4f8c60de95c10793a8e3e27fcb800d9" title="Enumeration for memory_order.">memory_order</a>);
<a name="l00076"></a>00076 <span class="comment"></span>
<a name="l00077"></a>00077 <span class="comment">  /// kill_dependency</span>
<a name="l00078"></a>00078 <span class="comment"></span>  <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Tp&gt;
<a name="l00079"></a>00079     <span class="keyword">inline</span> _Tp
<a name="l00080"></a><a class="code" href="a01188.html#gac0eb9e13684ae306e727b18bb37b4482">00080</a>     <a class="code" href="a01188.html#gac0eb9e13684ae306e727b18bb37b4482" title="kill_dependency">kill_dependency</a>(_Tp __y)
<a name="l00081"></a>00081     {
<a name="l00082"></a>00082       _Tp __ret(__y);
<a name="l00083"></a>00083       <span class="keywordflow">return</span> __ret;
<a name="l00084"></a>00084     }
<a name="l00085"></a>00085 <span class="comment"></span>
<a name="l00086"></a>00086 <span class="comment">  /**</span>
<a name="l00087"></a>00087 <span class="comment">   *  @brief Base type for atomic_flag.</span>
<a name="l00088"></a>00088 <span class="comment">   *</span>
<a name="l00089"></a>00089 <span class="comment">   *  Base type is POD with data, allowing atomic_flag to derive from</span>
<a name="l00090"></a>00090 <span class="comment">   *  it and meet the standard layout type requirement. In addition to</span>
<a name="l00091"></a>00091 <span class="comment">   *  compatibilty with a C interface, this allows different</span>
<a name="l00092"></a>00092 <span class="comment">   *  implementations of atomic_flag to use the same atomic operation</span>
<a name="l00093"></a>00093 <span class="comment">   *  functions, via a standard conversion to the __atomic_flag_base</span>
<a name="l00094"></a>00094 <span class="comment">   *  argument.</span>
<a name="l00095"></a>00095 <span class="comment">  */</span>
<a name="l00096"></a>00096   _GLIBCXX_BEGIN_EXTERN_C
<a name="l00097"></a>00097 
<a name="l00098"></a><a class="code" href="a00273.html">00098</a>   <span class="keyword">struct </span><a class="code" href="a00273.html" title="Base type for atomic_flag.">__atomic_flag_base</a>
<a name="l00099"></a>00099   {
<a name="l00100"></a>00100     <span class="keywordtype">bool</span> _M_i;
<a name="l00101"></a>00101   };
<a name="l00102"></a>00102 
<a name="l00103"></a>00103   _GLIBCXX_END_EXTERN_C
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="preprocessor">#define ATOMIC_FLAG_INIT { false }</span>
<a name="l00106"></a>00106 <span class="preprocessor"></span>
<a name="l00107"></a>00107 
<a name="l00108"></a>00108   <span class="comment">// Base types for atomics.</span>
<a name="l00109"></a>00109   <span class="comment">//</span>
<a name="l00110"></a>00110   <span class="comment">// Three nested namespaces for atomic implementation details.</span>
<a name="l00111"></a>00111   <span class="comment">//</span>
<a name="l00112"></a>00112   <span class="comment">// The nested namespace inlined into std:: is determined by the value</span>
<a name="l00113"></a>00113   <span class="comment">// of the _GLIBCXX_ATOMIC_PROPERTY macro and the resulting</span>
<a name="l00114"></a>00114   <span class="comment">// ATOMIC_*_LOCK_FREE macros.</span>
<a name="l00115"></a>00115   <span class="comment">//</span>
<a name="l00116"></a>00116   <span class="comment">// 0 == __atomic0 == Never lock-free</span>
<a name="l00117"></a>00117   <span class="comment">// 1 == __atomic1 == Best available, sometimes lock-free</span>
<a name="l00118"></a>00118   <span class="comment">// 2 == __atomic2 == Always lock-free</span>
<a name="l00119"></a>00119 
<a name="l00120"></a>00120   <span class="keyword">namespace </span>__atomic0
<a name="l00121"></a>00121   {
<a name="l00122"></a>00122     <span class="keyword">struct </span>atomic_flag;
<a name="l00123"></a>00123 
<a name="l00124"></a>00124     <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _IntTp&gt;
<a name="l00125"></a>00125       <span class="keyword">struct </span>__atomic_base;
<a name="l00126"></a>00126   }
<a name="l00127"></a>00127 
<a name="l00128"></a>00128   <span class="keyword">namespace </span>__atomic2
<a name="l00129"></a>00129   {
<a name="l00130"></a>00130     <span class="keyword">struct </span>atomic_flag;
<a name="l00131"></a>00131 
<a name="l00132"></a>00132     <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _IntTp&gt;
<a name="l00133"></a>00133       <span class="keyword">struct </span>__atomic_base;
<a name="l00134"></a>00134   }
<a name="l00135"></a>00135 
<a name="l00136"></a>00136   <span class="keyword">namespace </span>__atomic1
<a name="l00137"></a>00137   {
<a name="l00138"></a>00138     <span class="keyword">using</span> __atomic2::atomic_flag;
<a name="l00139"></a>00139     <span class="keyword">using</span> __atomic0::__atomic_base;
<a name="l00140"></a>00140   }
<a name="l00141"></a>00141 <span class="comment"></span>
<a name="l00142"></a>00142 <span class="comment">  /// Lock-free Property</span>
<a name="l00143"></a>00143 <span class="comment"></span><span class="preprocessor">#if defined(_GLIBCXX_ATOMIC_BUILTINS_1) &amp;&amp; defined(_GLIBCXX_ATOMIC_BUILTINS_2) \</span>
<a name="l00144"></a>00144 <span class="preprocessor">  &amp;&amp; defined(_GLIBCXX_ATOMIC_BUILTINS_4) &amp;&amp; defined(_GLIBCXX_ATOMIC_BUILTINS_8)</span>
<a name="l00145"></a><a class="code" href="a01188.html#ga0d870498f93fe6a63fc77561441d546d">00145</a> <span class="preprocessor"></span><span class="preprocessor"># define _GLIBCXX_ATOMIC_PROPERTY 2</span>
<a name="l00146"></a>00146 <span class="preprocessor"></span><span class="preprocessor"># define _GLIBCXX_ATOMIC_NAMESPACE __atomic2</span>
<a name="l00147"></a>00147 <span class="preprocessor"></span><span class="preprocessor">#elif defined(_GLIBCXX_ATOMIC_BUILTINS_1)</span>
<a name="l00148"></a>00148 <span class="preprocessor"></span><span class="preprocessor"># define _GLIBCXX_ATOMIC_PROPERTY 1</span>
<a name="l00149"></a>00149 <span class="preprocessor"></span><span class="preprocessor"># define _GLIBCXX_ATOMIC_NAMESPACE __atomic1</span>
<a name="l00150"></a>00150 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00151"></a>00151 <span class="preprocessor"></span><span class="preprocessor"># define _GLIBCXX_ATOMIC_PROPERTY 0</span>
<a name="l00152"></a>00152 <span class="preprocessor"></span><span class="preprocessor"># define _GLIBCXX_ATOMIC_NAMESPACE __atomic0</span>
<a name="l00153"></a>00153 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00154"></a>00154 <span class="preprocessor"></span>
<a name="l00155"></a>00155 <span class="preprocessor">#define ATOMIC_CHAR_LOCK_FREE _GLIBCXX_ATOMIC_PROPERTY</span>
<a name="l00156"></a>00156 <span class="preprocessor"></span><span class="preprocessor">#define ATOMIC_CHAR16_T_LOCK_FREE _GLIBCXX_ATOMIC_PROPERTY</span>
<a name="l00157"></a>00157 <span class="preprocessor"></span><span class="preprocessor">#define ATOMIC_CHAR32_T_LOCK_FREE _GLIBCXX_ATOMIC_PROPERTY</span>
<a name="l00158"></a>00158 <span class="preprocessor"></span><span class="preprocessor">#define ATOMIC_WCHAR_T_LOCK_FREE _GLIBCXX_ATOMIC_PROPERTY</span>
<a name="l00159"></a>00159 <span class="preprocessor"></span><span class="preprocessor">#define ATOMIC_SHORT_LOCK_FREE _GLIBCXX_ATOMIC_PROPERTY</span>
<a name="l00160"></a>00160 <span class="preprocessor"></span><span class="preprocessor">#define ATOMIC_INT_LOCK_FREE _GLIBCXX_ATOMIC_PROPERTY</span>
<a name="l00161"></a>00161 <span class="preprocessor"></span><span class="preprocessor">#define ATOMIC_LONG_LOCK_FREE _GLIBCXX_ATOMIC_PROPERTY</span>
<a name="l00162"></a>00162 <span class="preprocessor"></span><span class="preprocessor">#define ATOMIC_LLONG_LOCK_FREE _GLIBCXX_ATOMIC_PROPERTY</span>
<a name="l00163"></a>00163 <span class="preprocessor"></span>
<a name="l00164"></a>00164   <span class="keyword">inline</span> <span class="keyword">namespace </span>_GLIBCXX_ATOMIC_NAMESPACE { }
<a name="l00165"></a>00165 
<a name="l00166"></a>00166 <span class="comment"></span>
<a name="l00167"></a>00167 <span class="comment">  /// atomic_char</span>
<a name="l00168"></a><a class="code" href="a01188.html#gaf58cfa1b5c8d3a46bd307e81d06b0765">00168</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;char&gt;               <a class="code" href="a01188.html#gaf58cfa1b5c8d3a46bd307e81d06b0765" title="atomic_char">atomic_char</a>;
<a name="l00169"></a>00169 <span class="comment"></span>
<a name="l00170"></a>00170 <span class="comment">  /// atomic_schar</span>
<a name="l00171"></a><a class="code" href="a01188.html#gacf9b32a084fdb5d542290ef7f59e7c4b">00171</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;signed char&gt;            <a class="code" href="a01188.html#gacf9b32a084fdb5d542290ef7f59e7c4b" title="atomic_schar">atomic_schar</a>;
<a name="l00172"></a>00172 <span class="comment"></span>
<a name="l00173"></a>00173 <span class="comment">  /// atomic_uchar</span>
<a name="l00174"></a><a class="code" href="a01188.html#gaf95f2d439645dd8b55331e89894b5f78">00174</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;unsigned char&gt;      <a class="code" href="a01188.html#gaf95f2d439645dd8b55331e89894b5f78" title="atomic_uchar">atomic_uchar</a>;
<a name="l00175"></a>00175 <span class="comment"></span>
<a name="l00176"></a>00176 <span class="comment">  /// atomic_short</span>
<a name="l00177"></a><a class="code" href="a01188.html#ga9637bf38662b604246ea018d9ab54d47">00177</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;short&gt;          <a class="code" href="a01188.html#ga9637bf38662b604246ea018d9ab54d47" title="atomic_short">atomic_short</a>;
<a name="l00178"></a>00178 <span class="comment"></span>
<a name="l00179"></a>00179 <span class="comment">  /// atomic_ushort</span>
<a name="l00180"></a><a class="code" href="a01188.html#ga8b8d909f685d01c269e6715c3c823e91">00180</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;unsigned short&gt;     <a class="code" href="a01188.html#ga8b8d909f685d01c269e6715c3c823e91" title="atomic_ushort">atomic_ushort</a>;
<a name="l00181"></a>00181 <span class="comment"></span>
<a name="l00182"></a>00182 <span class="comment">  /// atomic_int</span>
<a name="l00183"></a><a class="code" href="a01188.html#ga04ef220e5bb058cc3fa3e3428904d442">00183</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;int&gt;                <a class="code" href="a01188.html#ga04ef220e5bb058cc3fa3e3428904d442" title="atomic_int">atomic_int</a>;
<a name="l00184"></a>00184 <span class="comment"></span>
<a name="l00185"></a>00185 <span class="comment">  /// atomic_uint</span>
<a name="l00186"></a><a class="code" href="a01188.html#ga442bd75a9b42c03b1469dd6f09182317">00186</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;unsigned int&gt;           <a class="code" href="a01188.html#ga442bd75a9b42c03b1469dd6f09182317" title="atomic_uint">atomic_uint</a>;
<a name="l00187"></a>00187 <span class="comment"></span>
<a name="l00188"></a>00188 <span class="comment">  /// atomic_long</span>
<a name="l00189"></a><a class="code" href="a01188.html#ga428826f4b1af80e1b2d0f54362c2cacb">00189</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;long&gt;               <a class="code" href="a01188.html#ga428826f4b1af80e1b2d0f54362c2cacb" title="atomic_long">atomic_long</a>;
<a name="l00190"></a>00190 <span class="comment"></span>
<a name="l00191"></a>00191 <span class="comment">  /// atomic_ulong</span>
<a name="l00192"></a><a class="code" href="a01188.html#ga5836c319ca14354d106a528f32ee3a61">00192</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;unsigned long&gt;      <a class="code" href="a01188.html#ga5836c319ca14354d106a528f32ee3a61" title="atomic_ulong">atomic_ulong</a>;
<a name="l00193"></a>00193 <span class="comment"></span>
<a name="l00194"></a>00194 <span class="comment">  /// atomic_llong</span>
<a name="l00195"></a><a class="code" href="a01188.html#ga744e139931a348b32bbd24d8699783ce">00195</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;long long&gt;          <a class="code" href="a01188.html#ga744e139931a348b32bbd24d8699783ce" title="atomic_llong">atomic_llong</a>;
<a name="l00196"></a>00196 <span class="comment"></span>
<a name="l00197"></a>00197 <span class="comment">  /// atomic_ullong</span>
<a name="l00198"></a><a class="code" href="a01188.html#gaccbb4ef5d881cdaff3cca32bc398490c">00198</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;unsigned long long&gt;     <a class="code" href="a01188.html#gaccbb4ef5d881cdaff3cca32bc398490c" title="atomic_ullong">atomic_ullong</a>;
<a name="l00199"></a>00199 <span class="comment"></span>
<a name="l00200"></a>00200 <span class="comment">  /// atomic_wchar_t</span>
<a name="l00201"></a><a class="code" href="a01188.html#ga23cc1593d8b6eda060aba0f979d0d4ce">00201</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;wchar_t&gt;        <a class="code" href="a01188.html#ga23cc1593d8b6eda060aba0f979d0d4ce" title="atomic_wchar_t">atomic_wchar_t</a>;
<a name="l00202"></a>00202 <span class="comment"></span>
<a name="l00203"></a>00203 <span class="comment">  /// atomic_char16_t</span>
<a name="l00204"></a><a class="code" href="a01188.html#ga0f2298bdec3374e1a1818f12918eb268">00204</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;char16_t&gt;       <a class="code" href="a01188.html#ga0f2298bdec3374e1a1818f12918eb268" title="atomic_char16_t">atomic_char16_t</a>;
<a name="l00205"></a>00205 <span class="comment"></span>
<a name="l00206"></a>00206 <span class="comment">  /// atomic_char32_t</span>
<a name="l00207"></a><a class="code" href="a01188.html#ga77dbe542f8c614c27da7c2f77e883d25">00207</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;char32_t&gt;       <a class="code" href="a01188.html#ga77dbe542f8c614c27da7c2f77e883d25" title="atomic_char32_t">atomic_char32_t</a>;
<a name="l00208"></a>00208 <span class="comment"></span>
<a name="l00209"></a>00209 <span class="comment">  /// atomic_char32_t</span>
<a name="l00210"></a>00210 <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;char32_t&gt;       <a class="code" href="a01188.html#ga77dbe542f8c614c27da7c2f77e883d25" title="atomic_char32_t">atomic_char32_t</a>;
<a name="l00211"></a>00211 
<a name="l00212"></a>00212 <span class="comment"></span>
<a name="l00213"></a>00213 <span class="comment">  /// atomic_int_least8_t</span>
<a name="l00214"></a><a class="code" href="a01188.html#ga1e2c3b04644d2884287d3f721d1b3ad6">00214</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;int_least8_t&gt;       <a class="code" href="a01188.html#ga1e2c3b04644d2884287d3f721d1b3ad6" title="atomic_int_least8_t">atomic_int_least8_t</a>;
<a name="l00215"></a>00215 <span class="comment"></span>
<a name="l00216"></a>00216 <span class="comment">  /// atomic_uint_least8_t</span>
<a name="l00217"></a><a class="code" href="a01188.html#gaf83a2a2a2509498c7bd3477765269538">00217</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;uint_least8_t&gt;          <a class="code" href="a01188.html#gaf83a2a2a2509498c7bd3477765269538" title="atomic_uint_least8_t">atomic_uint_least8_t</a>;
<a name="l00218"></a>00218 <span class="comment"></span>
<a name="l00219"></a>00219 <span class="comment">  /// atomic_int_least16_t</span>
<a name="l00220"></a><a class="code" href="a01188.html#ga4f66b703bddf1f24995c0d2c81a3d329">00220</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;int_least16_t&gt;          <a class="code" href="a01188.html#ga4f66b703bddf1f24995c0d2c81a3d329" title="atomic_int_least16_t">atomic_int_least16_t</a>;
<a name="l00221"></a>00221 <span class="comment"></span>
<a name="l00222"></a>00222 <span class="comment">  /// atomic_uint_least16_t</span>
<a name="l00223"></a><a class="code" href="a01188.html#gaf8bda8e59e57ed3f6955868193386236">00223</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;uint_least16_t&gt;         <a class="code" href="a01188.html#gaf8bda8e59e57ed3f6955868193386236" title="atomic_uint_least16_t">atomic_uint_least16_t</a>;
<a name="l00224"></a>00224 <span class="comment"></span>
<a name="l00225"></a>00225 <span class="comment">  /// atomic_int_least32_t</span>
<a name="l00226"></a><a class="code" href="a01188.html#ga059a25837eb7da1876108649a2747947">00226</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;int_least32_t&gt;          <a class="code" href="a01188.html#ga059a25837eb7da1876108649a2747947" title="atomic_int_least32_t">atomic_int_least32_t</a>;
<a name="l00227"></a>00227 <span class="comment"></span>
<a name="l00228"></a>00228 <span class="comment">  /// atomic_uint_least32_t</span>
<a name="l00229"></a><a class="code" href="a01188.html#gaf15c051886354889fff26938cae51abd">00229</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;uint_least32_t&gt;         <a class="code" href="a01188.html#gaf15c051886354889fff26938cae51abd" title="atomic_uint_least32_t">atomic_uint_least32_t</a>;
<a name="l00230"></a>00230 <span class="comment"></span>
<a name="l00231"></a>00231 <span class="comment">  /// atomic_int_least64_t</span>
<a name="l00232"></a><a class="code" href="a01188.html#ga6b010c3483fa78978c13accdf3cb9aee">00232</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;int_least64_t&gt;          <a class="code" href="a01188.html#ga6b010c3483fa78978c13accdf3cb9aee" title="atomic_int_least64_t">atomic_int_least64_t</a>;
<a name="l00233"></a>00233 <span class="comment"></span>
<a name="l00234"></a>00234 <span class="comment">  /// atomic_uint_least64_t</span>
<a name="l00235"></a><a class="code" href="a01188.html#gac316ce95f15e6437d4b5e7543112fcff">00235</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;uint_least64_t&gt;         <a class="code" href="a01188.html#gac316ce95f15e6437d4b5e7543112fcff" title="atomic_uint_least64_t">atomic_uint_least64_t</a>;
<a name="l00236"></a>00236 
<a name="l00237"></a>00237 <span class="comment"></span>
<a name="l00238"></a>00238 <span class="comment">  /// atomic_int_fast8_t</span>
<a name="l00239"></a><a class="code" href="a01188.html#ga1ec4aaa43408db30969fdb7588040656">00239</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;int_fast8_t&gt;        <a class="code" href="a01188.html#ga1ec4aaa43408db30969fdb7588040656" title="atomic_int_fast8_t">atomic_int_fast8_t</a>;
<a name="l00240"></a>00240 <span class="comment"></span>
<a name="l00241"></a>00241 <span class="comment">  /// atomic_uint_fast8_t</span>
<a name="l00242"></a><a class="code" href="a01188.html#ga8173423e017cf3cff25ab8ca8efc563c">00242</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;uint_fast8_t&gt;           <a class="code" href="a01188.html#ga8173423e017cf3cff25ab8ca8efc563c" title="atomic_uint_fast8_t">atomic_uint_fast8_t</a>;
<a name="l00243"></a>00243 <span class="comment"></span>
<a name="l00244"></a>00244 <span class="comment">  /// atomic_int_fast16_t</span>
<a name="l00245"></a><a class="code" href="a01188.html#ga01d45c3917a4bfa82b20298e73fde625">00245</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;int_fast16_t&gt;           <a class="code" href="a01188.html#ga01d45c3917a4bfa82b20298e73fde625" title="atomic_int_fast16_t">atomic_int_fast16_t</a>;
<a name="l00246"></a>00246 <span class="comment"></span>
<a name="l00247"></a>00247 <span class="comment">  /// atomic_uint_fast16_t</span>
<a name="l00248"></a><a class="code" href="a01188.html#gaf7622d74776f43d75beb97426bcfe3d4">00248</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;uint_fast16_t&gt;          <a class="code" href="a01188.html#gaf7622d74776f43d75beb97426bcfe3d4" title="atomic_uint_fast16_t">atomic_uint_fast16_t</a>;
<a name="l00249"></a>00249 <span class="comment"></span>
<a name="l00250"></a>00250 <span class="comment">  /// atomic_int_fast32_t</span>
<a name="l00251"></a><a class="code" href="a01188.html#gae869fcc125124b81b739715076fdf0cf">00251</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;int_fast32_t&gt;           <a class="code" href="a01188.html#gae869fcc125124b81b739715076fdf0cf" title="atomic_int_fast32_t">atomic_int_fast32_t</a>;
<a name="l00252"></a>00252 <span class="comment"></span>
<a name="l00253"></a>00253 <span class="comment">  /// atomic_uint_fast32_t</span>
<a name="l00254"></a><a class="code" href="a01188.html#gac33b5a5d2b3fbd7fa5ce96c3767ed63f">00254</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;uint_fast32_t&gt;          <a class="code" href="a01188.html#gac33b5a5d2b3fbd7fa5ce96c3767ed63f" title="atomic_uint_fast32_t">atomic_uint_fast32_t</a>;
<a name="l00255"></a>00255 <span class="comment"></span>
<a name="l00256"></a>00256 <span class="comment">  /// atomic_int_fast64_t</span>
<a name="l00257"></a><a class="code" href="a01188.html#ga3774428a19c8000e4a65962fbc3a0bf8">00257</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;int_fast64_t&gt;           <a class="code" href="a01188.html#ga3774428a19c8000e4a65962fbc3a0bf8" title="atomic_int_fast64_t">atomic_int_fast64_t</a>;
<a name="l00258"></a>00258 <span class="comment"></span>
<a name="l00259"></a>00259 <span class="comment">  /// atomic_uint_fast64_t</span>
<a name="l00260"></a><a class="code" href="a01188.html#ga6bec4bb1fc6ef22effe2873817d33aed">00260</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;uint_fast64_t&gt;          <a class="code" href="a01188.html#ga6bec4bb1fc6ef22effe2873817d33aed" title="atomic_uint_fast64_t">atomic_uint_fast64_t</a>;
<a name="l00261"></a>00261 
<a name="l00262"></a>00262 <span class="comment"></span>
<a name="l00263"></a>00263 <span class="comment">  /// atomic_intptr_t</span>
<a name="l00264"></a><a class="code" href="a01188.html#ga774949800d1e0b22e25a69f09a2dc91b">00264</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;intptr_t&gt;           <a class="code" href="a01188.html#ga774949800d1e0b22e25a69f09a2dc91b" title="atomic_intptr_t">atomic_intptr_t</a>;
<a name="l00265"></a>00265 <span class="comment"></span>
<a name="l00266"></a>00266 <span class="comment">  /// atomic_uintptr_t</span>
<a name="l00267"></a><a class="code" href="a01188.html#gadd3a408769266e0c386d69ac56b119a5">00267</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;uintptr_t&gt;              <a class="code" href="a01188.html#gadd3a408769266e0c386d69ac56b119a5" title="atomic_uintptr_t">atomic_uintptr_t</a>;
<a name="l00268"></a>00268 <span class="comment"></span>
<a name="l00269"></a>00269 <span class="comment">  /// atomic_size_t</span>
<a name="l00270"></a><a class="code" href="a01188.html#ga6dec3129b8c6a5a2aa025e8ef0559d22">00270</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;size_t&gt;             <a class="code" href="a01188.html#ga6dec3129b8c6a5a2aa025e8ef0559d22" title="atomic_size_t">atomic_size_t</a>;
<a name="l00271"></a>00271 <span class="comment"></span>
<a name="l00272"></a>00272 <span class="comment">  /// atomic_intmax_t</span>
<a name="l00273"></a><a class="code" href="a01188.html#ga2f3aa5479d45eccd2b7e56458ef24294">00273</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;intmax_t&gt;           <a class="code" href="a01188.html#ga2f3aa5479d45eccd2b7e56458ef24294" title="atomic_intmax_t">atomic_intmax_t</a>;
<a name="l00274"></a>00274 <span class="comment"></span>
<a name="l00275"></a>00275 <span class="comment">  /// atomic_uintmax_t</span>
<a name="l00276"></a><a class="code" href="a01188.html#gadc9c4bf224585fca0881d0b344657076">00276</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;uintmax_t&gt;              <a class="code" href="a01188.html#gadc9c4bf224585fca0881d0b344657076" title="atomic_uintmax_t">atomic_uintmax_t</a>;
<a name="l00277"></a>00277 <span class="comment"></span>
<a name="l00278"></a>00278 <span class="comment">  /// atomic_ptrdiff_t</span>
<a name="l00279"></a><a class="code" href="a01188.html#ga21a2bb13ac087c3422d8ad64046dad73">00279</a> <span class="comment"></span>  <span class="keyword">typedef</span> __atomic_base&lt;ptrdiff_t&gt;              <a class="code" href="a01188.html#ga21a2bb13ac087c3422d8ad64046dad73" title="atomic_ptrdiff_t">atomic_ptrdiff_t</a>;
<a name="l00280"></a>00280 
<a name="l00281"></a>00281 
<a name="l00282"></a>00282 <span class="preprocessor">#define ATOMIC_VAR_INIT(_VI) { _VI }</span>
<a name="l00283"></a>00283 <span class="preprocessor"></span>
<a name="l00284"></a>00284   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Tp&gt;
<a name="l00285"></a>00285     <span class="keyword">struct </span><a class="code" href="a00368.html" title="atomic 29.4.3, Generic atomic type, primary class template.">atomic</a>;
<a name="l00286"></a>00286 
<a name="l00287"></a>00287   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _Tp&gt;
<a name="l00288"></a>00288     <span class="keyword">struct </span><a class="code" href="a00368.html" title="atomic 29.4.3, Generic atomic type, primary class template.">atomic</a>&lt;_Tp*&gt;;
<a name="l00289"></a>00289 
<a name="l00290"></a>00290   <span class="comment">// @} group atomics</span>
<a name="l00291"></a>00291 
<a name="l00292"></a>00292 _GLIBCXX_END_NAMESPACE_VERSION
<a name="l00293"></a>00293 } <span class="comment">// namespace std</span>
<a name="l00294"></a>00294 
<a name="l00295"></a>00295 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00758.html">atomic_base.h</a>      </li>
      <li class="footer">Generated by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>

</body>
</html>