spogulis no
https://github.com/tearshark/librf.git
synced 2024-10-04 08:50:31 +08:00
218 rindas
25 KiB
HTML
218 rindas
25 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/>
|
||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||
<meta name="generator" content="Doxygen 1.8.17"/>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||
<title>librf: librf/src/mutex_v2.h 源文件</title>
|
||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||
<script type="text/javascript" src="jquery.js"></script>
|
||
<script type="text/javascript" src="dynsections.js"></script>
|
||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||
<script type="text/javascript" src="search/search.js"></script>
|
||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||
</head>
|
||
<body>
|
||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||
<div id="titlearea">
|
||
<table cellspacing="0" cellpadding="0">
|
||
<tbody>
|
||
<tr style="height: 56px;">
|
||
<td id="projectalign" style="padding-left: 0.5em;">
|
||
<div id="projectname">librf
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<!-- end header part -->
|
||
<!-- 制作者 Doxygen 1.8.17 -->
|
||
<script type="text/javascript">
|
||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
|
||
/* @license-end */
|
||
</script>
|
||
<script type="text/javascript" src="menudata.js"></script>
|
||
<script type="text/javascript" src="menu.js"></script>
|
||
<script type="text/javascript">
|
||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||
$(function() {
|
||
initMenu('',true,false,'search.php','搜索');
|
||
$(document).ready(function() { init_search(); });
|
||
});
|
||
/* @license-end */</script>
|
||
<div id="main-nav"></div>
|
||
<!-- window showing the filter options -->
|
||
<div id="MSearchSelectWindow"
|
||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||
</div>
|
||
|
||
<!-- iframe showing the search results (closed by default) -->
|
||
<div id="MSearchResultsWindow">
|
||
<iframe src="javascript:void(0)" frameborder="0"
|
||
name="MSearchResults" id="MSearchResults">
|
||
</iframe>
|
||
</div>
|
||
|
||
<div id="nav-path" class="navpath">
|
||
<ul>
|
||
<li class="navelem"><a class="el" href="dir_3c80010775d22af2067790ecc9cdcf9d.html">librf</a></li><li class="navelem"><a class="el" href="dir_54ae0e78d997f6903cdf0996223d047f.html">src</a></li> </ul>
|
||
</div>
|
||
</div><!-- top -->
|
||
<div class="header">
|
||
<div class="headertitle">
|
||
<div class="title">mutex_v2.h</div> </div>
|
||
</div><!--header-->
|
||
<div class="contents">
|
||
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#pragma once</span></div>
|
||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>  </div>
|
||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="keyword">namespace </span>resumef</div>
|
||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> {</div>
|
||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  <span class="keyword">namespace </span>detail</div>
|
||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  {</div>
|
||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  <span class="keyword">struct </span>mutex_v2_impl;</div>
|
||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  }</div>
|
||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  <span class="keyword">inline</span> <span class="keyword">namespace </span>mutex_v2</div>
|
||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  {</div>
|
||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#endif //DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
||
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="structresumef_1_1adopt__manual__unlock__t.html"> 17</a></span>  <span class="keyword">struct </span><a class="code" href="structresumef_1_1adopt__manual__unlock__t.html">adopt_manual_unlock_t</a>{};</div>
|
||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
|
||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  constexpr <a class="code" href="structresumef_1_1adopt__manual__unlock__t.html">adopt_manual_unlock_t</a> adopt_manual_unlock;</div>
|
||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keyword">template</span><<span class="keyword">class</span>... _Mtxs></div>
|
||
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="structresumef_1_1batch__unlock__t.html"> 28</a></span>  <span class="keyword">struct </span>[[nodiscard]] <a class="code" href="structresumef_1_1batch__unlock__t.html">batch_unlock_t</a>;</div>
|
||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
|
||
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="structresumef_1_1mutex__t.html"> 34</a></span>  <span class="keyword">struct </span><a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a></div>
|
||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  {</div>
|
||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordtype">bool</span> is_locked() <span class="keyword">const</span>;</div>
|
||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div>
|
||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">struct </span>lock_awaiter;</div>
|
||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">struct </span>[[nodiscard]] awaiter;</div>
|
||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keyword">struct </span>[[nodiscard]] manual_awaiter;</div>
|
||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
|
||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  awaiter<span class="comment">/*batch_unlock_t*/</span> lock() <span class="keyword">const</span> noexcept;</div>
|
||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
|
||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  awaiter<span class="comment">/*batch_unlock_t*/</span> <span class="keyword">operator</span> co_await() <span class="keyword">const</span> noexcept;</div>
|
||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
|
||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  manual_awaiter<span class="comment">/*void*/</span> lock(<a class="code" href="structresumef_1_1adopt__manual__unlock__t.html">adopt_manual_unlock_t</a> manual_unlock_tag) <span class="keyword">const</span> noexcept;</div>
|
||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div>
|
||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
|
||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">struct </span>[[nodiscard]] try_awaiter;</div>
|
||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div>
|
||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  try_awaiter<span class="comment">/*bool*/</span> try_lock() <span class="keyword">const</span> noexcept;</div>
|
||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div>
|
||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keyword">struct </span>[[nodiscard]] unlock_awaiter;</div>
|
||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
|
||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  unlock_awaiter<span class="comment">/*void*/</span> unlock() <span class="keyword">const</span> noexcept;</div>
|
||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
|
||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
|
||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">struct </span>[[nodiscard]] timeout_awaiter;</div>
|
||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
|
||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">template</span> <<span class="keyword">class</span> _Rep, <span class="keyword">class</span> _Period></div>
|
||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  timeout_awaiter<span class="comment">/*bool*/</span> try_lock_for(<span class="keyword">const</span> std::chrono::duration<_Rep, _Period>& dt) <span class="keyword">const</span> noexcept;</div>
|
||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  </div>
|
||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keyword">template</span> <<span class="keyword">class</span> _Rep, <span class="keyword">class</span> _Period></div>
|
||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  timeout_awaiter<span class="comment">/*bool*/</span> try_lock_until(<span class="keyword">const</span> std::chrono::time_point<_Rep, _Period>& tp) <span class="keyword">const</span> noexcept;</div>
|
||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div>
|
||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div>
|
||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordtype">void</span> lock(<span class="keywordtype">void</span>* unique_address) <span class="keyword">const</span>;</div>
|
||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div>
|
||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordtype">bool</span> try_lock(<span class="keywordtype">void</span>* unique_address) <span class="keyword">const</span>;</div>
|
||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  </div>
|
||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keyword">template</span> <<span class="keyword">class</span> _Rep, <span class="keyword">class</span> _Period></div>
|
||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordtype">bool</span> try_lock_for(<span class="keyword">const</span> std::chrono::duration<_Rep, _Period>& dt, <span class="keywordtype">void</span>* unique_address);</div>
|
||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  </div>
|
||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">template</span> <<span class="keyword">class</span> _Rep, <span class="keyword">class</span> _Period></div>
|
||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordtype">bool</span> try_lock_until(<span class="keyword">const</span> std::chrono::time_point<_Rep, _Period>& tp, <span class="keywordtype">void</span>* unique_address);</div>
|
||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div>
|
||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">void</span> unlock(<span class="keywordtype">void</span>* unique_address) <span class="keyword">const</span>;</div>
|
||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
|
||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div>
|
||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keyword">template</span><<span class="keyword">class</span>... _Mtxs</div>
|
||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  , <span class="keyword">typename</span> = std::enable_if_t<std::conjunction_v<std::is_same<remove_cvref_t<_Mtxs>, <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>>...>></div>
|
||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="preprocessor">#endif //DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  ></div>
|
||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keyword">static</span> <a class="code" href="structresumef_1_1future__t.html">future_t</a><<a class="code" href="structresumef_1_1batch__unlock__t.html">batch_unlock_t</a><_Mtxs...>> lock(_Mtxs&... mtxs);</div>
|
||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div>
|
||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keyword">template</span><<span class="keyword">class</span>... _Mtxs</div>
|
||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  , <span class="keyword">typename</span> = std::enable_if_t<std::conjunction_v<std::is_same<remove_cvref_t<_Mtxs>, <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>>...>></div>
|
||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="preprocessor">#endif //DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  ></div>
|
||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keyword">static</span> <a class="code" href="structresumef_1_1future__t.html">future_t<></a> lock(<a class="code" href="structresumef_1_1adopt__manual__unlock__t.html">adopt_manual_unlock_t</a> manual_unlock_tag, _Mtxs&... mtxs);</div>
|
||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  </div>
|
||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keyword">template</span><<span class="keyword">class</span>... _Mtxs</div>
|
||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  , <span class="keyword">typename</span> = std::enable_if_t<std::conjunction_v<std::is_same<remove_cvref_t<_Mtxs>, <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>>...>></div>
|
||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="preprocessor">#endif //DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  ></div>
|
||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keyword">static</span> <a class="code" href="structresumef_1_1future__t.html">future_t<></a> unlock(_Mtxs&... mtxs);</div>
|
||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div>
|
||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  </div>
|
||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">template</span><<span class="keyword">class</span>... _Mtxs</div>
|
||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  , <span class="keyword">typename</span> = std::enable_if_t<std::conjunction_v<std::is_same<remove_cvref_t<_Mtxs>, <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>>...>></div>
|
||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="preprocessor">#endif //DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  ></div>
|
||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keyword">static</span> <a class="code" href="structresumef_1_1batch__unlock__t.html">batch_unlock_t</a><_Mtxs...> lock(<span class="keywordtype">void</span>* unique_address, _Mtxs&... mtxs);</div>
|
||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
|
||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keyword">template</span><<span class="keyword">class</span>... _Mtxs</div>
|
||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  , <span class="keyword">typename</span> = std::enable_if_t<std::conjunction_v<std::is_same<remove_cvref_t<_Mtxs>, <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>>...>></div>
|
||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="preprocessor">#endif //DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  ></div>
|
||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> lock(<a class="code" href="structresumef_1_1adopt__manual__unlock__t.html">adopt_manual_unlock_t</a> manual_unlock_tag, <span class="keywordtype">void</span>* unique_address, _Mtxs&... mtxs);</div>
|
||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  </div>
|
||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keyword">template</span><<span class="keyword">class</span>... _Mtxs</div>
|
||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  , <span class="keyword">typename</span> = std::enable_if_t<std::conjunction_v<std::is_same<remove_cvref_t<_Mtxs>, <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>>...>></div>
|
||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="preprocessor">#endif //DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  ></div>
|
||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> unlock(<span class="keywordtype">void</span>* unique_address, _Mtxs&... mtxs);</div>
|
||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  </div>
|
||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>();</div>
|
||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  </div>
|
||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>(std::adopt_lock_t) noexcept;</div>
|
||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  ~<a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>() noexcept;</div>
|
||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  </div>
|
||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>(<span class="keyword">const</span> <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&) = <span class="keywordflow">default</span>;</div>
|
||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>(<a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&&) = <span class="keywordflow">default</span>;</div>
|
||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>& operator = (<span class="keyword">const</span> <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&) = <span class="keywordflow">default</span>;</div>
|
||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>& operator = (<a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&&) = <span class="keywordflow">default</span>;</div>
|
||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  </div>
|
||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keyword">typedef</span> std::shared_ptr<detail::mutex_v2_impl> mutex_impl_ptr;</div>
|
||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keyword">typedef</span> std::chrono::system_clock clock_type;</div>
|
||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keyword">private</span>:</div>
|
||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="keyword">struct </span>_MutexAwaitAssembleT;</div>
|
||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  </div>
|
||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="keyword">template</span><<span class="keyword">class</span>... _Mtxs> <span class="keyword">friend</span> <span class="keyword">struct </span><a class="code" href="structresumef_1_1batch__unlock__t.html">batch_unlock_t</a>;</div>
|
||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  </div>
|
||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  mutex_impl_ptr _mutex;</div>
|
||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="preprocessor">#endif //DOXYGEN_SKIP_PROPERTY</span></div>
|
||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  };</div>
|
||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  }</div>
|
||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> }</div>
|
||
</div><!-- fragment --></div><!-- contents -->
|
||
<div class="ttc" id="astructresumef_1_1adopt__manual__unlock__t_html"><div class="ttname"><a href="structresumef_1_1adopt__manual__unlock__t.html">resumef::adopt_manual_unlock_t</a></div><div class="ttdoc">提示手工解锁,故相关的lock()函数不再返回batch_unlock_t。</div><div class="ttdef"><b>Definition:</b> mutex_v2.h:17</div></div>
|
||
<div class="ttc" id="astructresumef_1_1future__t_html"><div class="ttname"><a href="structresumef_1_1future__t.html">resumef::future_t</a></div><div class="ttdoc">用于resumef协程的返回值。</div><div class="ttdef"><b>Definition:</b> future.h:14</div></div>
|
||
<div class="ttc" id="astructresumef_1_1batch__unlock__t_html"><div class="ttname"><a href="structresumef_1_1batch__unlock__t.html">resumef::batch_unlock_t</a></div><div class="ttdoc">在析构的时候自动解锁mutex_t的辅助类。</div><div class="ttdef"><b>Definition:</b> mutex_v2.h:28</div></div>
|
||
<div class="ttc" id="astructresumef_1_1mutex__t_html"><div class="ttname"><a href="structresumef_1_1mutex__t.html">resumef::mutex_t</a></div><div class="ttdoc">支持递归的锁。</div><div class="ttdef"><b>Definition:</b> mutex_v2.h:34</div></div>
|
||
<!-- start footer part -->
|
||
<hr class="footer"/><address class="footer"><small>
|
||
制作者  <a href="http://www.doxygen.org/index.html">
|
||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||
</a> 1.8.17
|
||
</small></address>
|
||
</body>
|
||
</html>
|