mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 14:35:52 +00:00
deploy: afc05659ed
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.5"/>
|
||||
<meta name="generator" content="Doxygen 1.9.8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>rippled: ClosureCounter.h Source File</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -29,7 +29,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.5 -->
|
||||
<!-- Generated by Doxygen 1.9.8 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
||||
@@ -46,6 +46,11 @@ $(function() {
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function() { init_codefold(0); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
@@ -108,6 +113,7 @@ $(function() {
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="keyword">template</span> <<span class="keyword">typename</span> Ret_t, <span class="keyword">typename</span>... Args_t></div>
|
||||
<div class="foldopen" id="foldopen00054" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter.html"> 54</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1ClosureCounter.html">ClosureCounter</a></div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span>{</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span><span class="keyword">private</span>:</div>
|
||||
@@ -118,15 +124,18 @@ $(function() {
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="comment">// Increment the count.</span></div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <a class="code hl_class" href="classripple_1_1ClosureCounter.html">ClosureCounter</a>&</div>
|
||||
<div class="foldopen" id="foldopen00064" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter.html#a159b270200c0a146ac2bcd3c7ebf77e6"> 64</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter.html#a159b270200c0a146ac2bcd3c7ebf77e6">operator++</a>()</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> {</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> ++<a class="code hl_variable" href="classripple_1_1ClosureCounter.html#a6624680820fcf0e17478b71c7c6ab0f1">closureCount_</a>;</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="comment">// Decrement the count. If we're stopping and the count drops to zero</span></div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="comment">// notify allClosuresDoneCond_.</span></div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <a class="code hl_class" href="classripple_1_1ClosureCounter.html">ClosureCounter</a>&</div>
|
||||
<div class="foldopen" id="foldopen00073" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter.html#aa096cbe5507cabb97e71c83ff25e528d"> 73</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter.html#aa096cbe5507cabb97e71c83ff25e528d">operator--</a>()</div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> {</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="comment">// Even though closureCount_ is atomic, we decrement its value under</span></div>
|
||||
@@ -140,11 +149,13 @@ $(function() {
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <a class="code hl_variable" href="classripple_1_1ClosureCounter.html#ae88e054a2fb5bf4f9f5098783b2e20fe">allClosuresDoneCond_</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable/notify_all.html">notify_all</a>();</div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="comment">// A private template class that helps count the number of closures</span></div>
|
||||
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="comment">// in flight. This allows callers to block until all their postponed</span></div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="comment">// closures are dispatched.</span></div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keyword">template</span> <<span class="keyword">typename</span> Closure></div>
|
||||
<div class="foldopen" id="foldopen00091" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter_1_1Substitute.html"> 91</a></span> <span class="keyword">class </span><a class="code hl_class" href="classripple_1_1ClosureCounter_1_1Substitute.html">Substitute</a></div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> {</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keyword">private</span>:</div>
|
||||
@@ -152,51 +163,62 @@ $(function() {
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter_1_1Substitute.html#a358f81ed8b4eb55b1d91e2ed06e75ca2"> 95</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/remove_reference.html">std::remove_reference_t<Closure></a> <a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#a358f81ed8b4eb55b1d91e2ed06e75ca2">closure_</a>;</div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keyword">static_assert</span>(</div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same<decltype(closure_(std::declval<Args_t></a>()...)), Ret_t>::</div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same<decltype(closure_(std::declval<Args_t></a>()...)), Ret_t>::</div>
|
||||
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> value,</div>
|
||||
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="stringliteral">"Closure arguments don't match ClosureCounter Ret_t or Args_t"</span>);</div>
|
||||
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> </div>
|
||||
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter_1_1Substitute.html#ae61865f5f9551f28bffe66a40430379c"> 103</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter_1_1Substitute.html#ae61865f5f9551f28bffe66a40430379c">Substitute</a>() = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
|
||||
<div class="foldopen" id="foldopen00105" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter_1_1Substitute.html#a0df76e1f995ded9fbdc675050741df3b"> 105</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter_1_1Substitute.html#a0df76e1f995ded9fbdc675050741df3b">Substitute</a>(<a class="code hl_class" href="classripple_1_1ClosureCounter_1_1Substitute.html">Substitute</a> <span class="keyword">const</span>& rhs)</div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> : <a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#aaf62d3bbc5d6a5a5080a7eb3a7dadb10">counter_</a>(rhs.<a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#aaf62d3bbc5d6a5a5080a7eb3a7dadb10">counter_</a>), <a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#a358f81ed8b4eb55b1d91e2ed06e75ca2">closure_</a>(rhs.<a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#a358f81ed8b4eb55b1d91e2ed06e75ca2">closure_</a>)</div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> {</div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> ++<a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#aaf62d3bbc5d6a5a5080a7eb3a7dadb10">counter_</a>;</div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div>
|
||||
<div class="foldopen" id="foldopen00111" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter_1_1Substitute.html#a266d79c8ba32c4e0066d1cf07f6cd2fd"> 111</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter_1_1Substitute.html#a266d79c8ba32c4e0066d1cf07f6cd2fd">Substitute</a>(<a class="code hl_class" href="classripple_1_1ClosureCounter_1_1Substitute.html">Substitute</a>&& rhs) <span class="keyword">noexcept</span>(</div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/is_move_constructible.html">std::is_nothrow_move_constructible<Closure>::value</a>)</div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> : <a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#aaf62d3bbc5d6a5a5080a7eb3a7dadb10">counter_</a>(rhs.counter_), <a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#a358f81ed8b4eb55b1d91e2ed06e75ca2">closure_</a>(std::move(rhs.closure_))</div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> : <a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#aaf62d3bbc5d6a5a5080a7eb3a7dadb10">counter_</a>(rhs.<a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#aaf62d3bbc5d6a5a5080a7eb3a7dadb10">counter_</a>), <a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#a358f81ed8b4eb55b1d91e2ed06e75ca2">closure_</a>(<a class="code hl_namespace" href="namespacestd.html">std</a>::move(rhs.<a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#a358f81ed8b4eb55b1d91e2ed06e75ca2">closure_</a>))</div>
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> {</div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> ++<a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#aaf62d3bbc5d6a5a5080a7eb3a7dadb10">counter_</a>;</div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
|
||||
<div class="foldopen" id="foldopen00118" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter_1_1Substitute.html#acfb01021bdbdcfacb2385a78115e1673"> 118</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter_1_1Substitute.html#acfb01021bdbdcfacb2385a78115e1673">Substitute</a>(<a class="code hl_class" href="classripple_1_1ClosureCounter.html">ClosureCounter</a>& counter, Closure&& closure)</div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> : <a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#aaf62d3bbc5d6a5a5080a7eb3a7dadb10">counter_</a>(counter), <a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#a358f81ed8b4eb55b1d91e2ed06e75ca2">closure_</a>(<a class="code hl_namespace" href="namespacestd.html">std</a>::<a class="code hl_enumvalue" href="namespaceripple.html#a2fca0f72cfacc04d15ad41d84ebf46fda965dbaac085fc891bfbbd4f9d145bbc8">forward</a><Closure>(closure))</div>
|
||||
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> {</div>
|
||||
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> ++<a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#aaf62d3bbc5d6a5a5080a7eb3a7dadb10">counter_</a>;</div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
|
||||
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <a class="code hl_class" href="classripple_1_1ClosureCounter_1_1Substitute.html">Substitute</a>&</div>
|
||||
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter_1_1Substitute.html#a4dbe2ae284fefed85068a993d1c9b931"> 125</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter_1_1Substitute.html#a4dbe2ae284fefed85068a993d1c9b931">operator=</a>(<a class="code hl_class" href="classripple_1_1ClosureCounter_1_1Substitute.html">Substitute</a> <span class="keyword">const</span>& rhs) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <a class="code hl_class" href="classripple_1_1ClosureCounter_1_1Substitute.html">Substitute</a>&</div>
|
||||
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter_1_1Substitute.html#a5eee75b0f8bdc463d421295912ad1e70"> 127</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter_1_1Substitute.html#a5eee75b0f8bdc463d421295912ad1e70">operator=</a>(<a class="code hl_class" href="classripple_1_1ClosureCounter_1_1Substitute.html">Substitute</a>&& rhs) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
|
||||
<div class="foldopen" id="foldopen00129" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter_1_1Substitute.html#a7dc5641041ef15a37f188642028c3c8e"> 129</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter_1_1Substitute.html#a7dc5641041ef15a37f188642028c3c8e">~Substitute</a>()</div>
|
||||
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> {</div>
|
||||
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> --<a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#aaf62d3bbc5d6a5a5080a7eb3a7dadb10">counter_</a>;</div>
|
||||
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
|
||||
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="comment">// Note that Args_t is not deduced, it is explicit. So Args_t&&</span></div>
|
||||
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="comment">// would be an rvalue reference, not a forwarding reference. We</span></div>
|
||||
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="comment">// want to forward exactly what the user declared.</span></div>
|
||||
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> Ret_t</div>
|
||||
<div class="foldopen" id="foldopen00138" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter_1_1Substitute.html#a928a3450ec3d0741f225bab5f6328830"> 138</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter_1_1Substitute.html#a928a3450ec3d0741f225bab5f6328830">operator()</a>(Args_t... args)</div>
|
||||
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> {</div>
|
||||
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#a358f81ed8b4eb55b1d91e2ed06e75ca2">closure_</a>(std::forward<Args_t>(args)...);</div>
|
||||
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1ClosureCounter_1_1Substitute.html#a358f81ed8b4eb55b1d91e2ed06e75ca2">closure_</a>(<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::forward<Args_t></a>(args)...);</div>
|
||||
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> };</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
|
||||
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span><span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter.html#a1ae059e35862ae4564be04cd937b77b5"> 145</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter.html#a1ae059e35862ae4564be04cd937b77b5">ClosureCounter</a>() = <span class="keywordflow">default</span>;</div>
|
||||
@@ -206,13 +228,16 @@ $(function() {
|
||||
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_class" href="classripple_1_1ClosureCounter.html">ClosureCounter</a>&</div>
|
||||
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter.html#add5769c13c89ad4200869278b9b27ae7"> 150</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter.html#add5769c13c89ad4200869278b9b27ae7">operator=</a>(<a class="code hl_class" href="classripple_1_1ClosureCounter.html">ClosureCounter</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
|
||||
<div class="foldopen" id="foldopen00153" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter.html#ae81daf5aa300babc764a8d170482230f"> 153</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter.html#ae81daf5aa300babc764a8d170482230f">~ClosureCounter</a>()</div>
|
||||
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> {</div>
|
||||
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keyword">using namespace </span>std::chrono_literals;</div>
|
||||
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <a class="code hl_function" href="classripple_1_1ClosureCounter.html#af0786d10092850fd4a1f10d0bec927a7">join</a>(<span class="stringliteral">"ClosureCounter"</span>, 1s, <a class="code hl_function" href="namespaceripple.html#a94e13759bd026c8ac305482e17f05adb">debugLog</a>());</div>
|
||||
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
|
||||
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="keywordtype">void</span></div>
|
||||
<div class="foldopen" id="foldopen00166" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter.html#af0786d10092850fd4a1f10d0bec927a7"> 166</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter.html#af0786d10092850fd4a1f10d0bec927a7">join</a>(<span class="keywordtype">char</span> <span class="keyword">const</span>* name, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::milliseconds</a> wait, <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> j)</div>
|
||||
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> {</div>
|
||||
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock<std::mutex></a> lock{<a class="code hl_variable" href="classripple_1_1ClosureCounter.html#a7657852232c52a27d41d6ec1a01b39a8">mutex_</a>};</div>
|
||||
@@ -229,76 +254,84 @@ $(function() {
|
||||
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> }</div>
|
||||
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> }</div>
|
||||
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> </div>
|
||||
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="keyword">template</span> <<span class="keyword">class</span> Closure></div>
|
||||
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<Substitute<Closure></a>></div>
|
||||
<div class="foldopen" id="foldopen00192" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter.html#a14a40130eba0b1a5a12e8b8a0df809b5"> 192</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter.html#a14a40130eba0b1a5a12e8b8a0df809b5">wrap</a>(Closure&& closure)</div>
|
||||
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> {</div>
|
||||
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<Substitute<Closure></a>> ret;</div>
|
||||
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> </div>
|
||||
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock{<a class="code hl_variable" href="classripple_1_1ClosureCounter.html#a7657852232c52a27d41d6ec1a01b39a8">mutex_</a>};</div>
|
||||
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="classripple_1_1ClosureCounter.html#a6bbb44eb2decd510cba1ea86f023f1b0">waitForClosures_</a>)</div>
|
||||
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> ret.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/optional/emplace.html">emplace</a>(*<span class="keyword">this</span>, std::forward<Closure>(closure));</div>
|
||||
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> ret.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/optional/emplace.html">emplace</a>(*<span class="keyword">this</span>, <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::forward<Closure></a>(closure));</div>
|
||||
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> </div>
|
||||
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <span class="keywordflow">return</span> ret;</div>
|
||||
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> </div>
|
||||
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> <span class="keywordtype">int</span></div>
|
||||
<div class="foldopen" id="foldopen00205" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter.html#aa2194cbada192730b683d89a27434fb8"> 205</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter.html#aa2194cbada192730b683d89a27434fb8">count</a>()<span class="keyword"> const</span></div>
|
||||
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1ClosureCounter.html#a6624680820fcf0e17478b71c7c6ab0f1">closureCount_</a>;</div>
|
||||
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> </div>
|
||||
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="foldopen" id="foldopen00217" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"><a class="line" href="classripple_1_1ClosureCounter.html#a063738b31b4d437c410ea4e1c2cde160"> 217</a></span> <a class="code hl_function" href="classripple_1_1ClosureCounter.html#a063738b31b4d437c410ea4e1c2cde160">joined</a>()<span class="keyword"> const</span></div>
|
||||
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock{<a class="code hl_variable" href="classripple_1_1ClosureCounter.html#a7657852232c52a27d41d6ec1a01b39a8">mutex_</a>};</div>
|
||||
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1ClosureCounter.html#a6bbb44eb2decd510cba1ea86f023f1b0">waitForClosures_</a>;</div>
|
||||
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span>};</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> </div>
|
||||
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span>} <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> </div>
|
||||
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span><span class="preprocessor">#endif </span><span class="comment">// RIPPLE_CORE_CLOSURE_COUNTER_H_INCLUDED</span></div>
|
||||
<div class="ttc" id="aatomic_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/atomic.html">atomic</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00059">Journal.h:60</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html_a49b0713e65bb8e2c51b76fbf16252afe"><div class="ttname"><a href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">beast::Journal::error</a></div><div class="ttdeci">Stream error() const</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00346">Journal.h:346</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html">ripple::ClosureCounter::Substitute</a></div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00091">ClosureCounter.h:92</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_a0df76e1f995ded9fbdc675050741df3b"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#a0df76e1f995ded9fbdc675050741df3b">ripple::ClosureCounter::Substitute::Substitute</a></div><div class="ttdeci">Substitute(Substitute const &rhs)</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00105">ClosureCounter.h:105</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_a266d79c8ba32c4e0066d1cf07f6cd2fd"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#a266d79c8ba32c4e0066d1cf07f6cd2fd">ripple::ClosureCounter::Substitute::Substitute</a></div><div class="ttdeci">Substitute(Substitute &&rhs) noexcept(std::is_nothrow_move_constructible< Closure >::value)</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00111">ClosureCounter.h:111</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_a358f81ed8b4eb55b1d91e2ed06e75ca2"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#a358f81ed8b4eb55b1d91e2ed06e75ca2">ripple::ClosureCounter::Substitute::closure_</a></div><div class="ttdeci">std::remove_reference_t< Closure > closure_</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00095">ClosureCounter.h:95</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition</b> <a href="Journal_8h_source.html#l00059">Journal.h:60</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1Journal_html_a49b0713e65bb8e2c51b76fbf16252afe"><div class="ttname"><a href="classbeast_1_1Journal.html#a49b0713e65bb8e2c51b76fbf16252afe">beast::Journal::error</a></div><div class="ttdeci">Stream error() const</div><div class="ttdef"><b>Definition</b> <a href="Journal_8h_source.html#l00346">Journal.h:346</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html">ripple::ClosureCounter::Substitute</a></div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00091">ClosureCounter.h:92</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_a0df76e1f995ded9fbdc675050741df3b"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#a0df76e1f995ded9fbdc675050741df3b">ripple::ClosureCounter::Substitute::Substitute</a></div><div class="ttdeci">Substitute(Substitute const &rhs)</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00105">ClosureCounter.h:105</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_a266d79c8ba32c4e0066d1cf07f6cd2fd"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#a266d79c8ba32c4e0066d1cf07f6cd2fd">ripple::ClosureCounter::Substitute::Substitute</a></div><div class="ttdeci">Substitute(Substitute &&rhs) noexcept(std::is_nothrow_move_constructible< Closure >::value)</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00111">ClosureCounter.h:111</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_a358f81ed8b4eb55b1d91e2ed06e75ca2"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#a358f81ed8b4eb55b1d91e2ed06e75ca2">ripple::ClosureCounter::Substitute::closure_</a></div><div class="ttdeci">std::remove_reference_t< Closure > closure_</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00095">ClosureCounter.h:95</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_a4dbe2ae284fefed85068a993d1c9b931"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#a4dbe2ae284fefed85068a993d1c9b931">ripple::ClosureCounter::Substitute::operator=</a></div><div class="ttdeci">Substitute & operator=(Substitute const &rhs)=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_a5eee75b0f8bdc463d421295912ad1e70"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#a5eee75b0f8bdc463d421295912ad1e70">ripple::ClosureCounter::Substitute::operator=</a></div><div class="ttdeci">Substitute & operator=(Substitute &&rhs)=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_a7dc5641041ef15a37f188642028c3c8e"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#a7dc5641041ef15a37f188642028c3c8e">ripple::ClosureCounter::Substitute::~Substitute</a></div><div class="ttdeci">~Substitute()</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00129">ClosureCounter.h:129</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_a928a3450ec3d0741f225bab5f6328830"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#a928a3450ec3d0741f225bab5f6328830">ripple::ClosureCounter::Substitute::operator()</a></div><div class="ttdeci">Ret_t operator()(Args_t... args)</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00138">ClosureCounter.h:138</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_aaf62d3bbc5d6a5a5080a7eb3a7dadb10"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#aaf62d3bbc5d6a5a5080a7eb3a7dadb10">ripple::ClosureCounter::Substitute::counter_</a></div><div class="ttdeci">ClosureCounter & counter_</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00094">ClosureCounter.h:94</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_acfb01021bdbdcfacb2385a78115e1673"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#acfb01021bdbdcfacb2385a78115e1673">ripple::ClosureCounter::Substitute::Substitute</a></div><div class="ttdeci">Substitute(ClosureCounter &counter, Closure &&closure)</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00118">ClosureCounter.h:118</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_a7dc5641041ef15a37f188642028c3c8e"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#a7dc5641041ef15a37f188642028c3c8e">ripple::ClosureCounter::Substitute::~Substitute</a></div><div class="ttdeci">~Substitute()</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00129">ClosureCounter.h:129</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_a928a3450ec3d0741f225bab5f6328830"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#a928a3450ec3d0741f225bab5f6328830">ripple::ClosureCounter::Substitute::operator()</a></div><div class="ttdeci">Ret_t operator()(Args_t... args)</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00138">ClosureCounter.h:138</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_aaf62d3bbc5d6a5a5080a7eb3a7dadb10"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#aaf62d3bbc5d6a5a5080a7eb3a7dadb10">ripple::ClosureCounter::Substitute::counter_</a></div><div class="ttdeci">ClosureCounter & counter_</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00094">ClosureCounter.h:94</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_acfb01021bdbdcfacb2385a78115e1673"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#acfb01021bdbdcfacb2385a78115e1673">ripple::ClosureCounter::Substitute::Substitute</a></div><div class="ttdeci">Substitute(ClosureCounter &counter, Closure &&closure)</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00118">ClosureCounter.h:118</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_1_1Substitute_html_ae61865f5f9551f28bffe66a40430379c"><div class="ttname"><a href="classripple_1_1ClosureCounter_1_1Substitute.html#ae61865f5f9551f28bffe66a40430379c">ripple::ClosureCounter::Substitute::Substitute</a></div><div class="ttdeci">Substitute()=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html"><div class="ttname"><a href="classripple_1_1ClosureCounter.html">ripple::ClosureCounter</a></div><div class="ttdoc">The role of a ClosureCounter is to assist in shutdown by letting callers wait for the completion of c...</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00054">ClosureCounter.h:55</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a063738b31b4d437c410ea4e1c2cde160"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a063738b31b4d437c410ea4e1c2cde160">ripple::ClosureCounter::joined</a></div><div class="ttdeci">bool joined() const</div><div class="ttdoc">Returns true if this has been joined.</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00217">ClosureCounter.h:217</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a14a40130eba0b1a5a12e8b8a0df809b5"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a14a40130eba0b1a5a12e8b8a0df809b5">ripple::ClosureCounter::wrap</a></div><div class="ttdeci">std::optional< Substitute< Closure > > wrap(Closure &&closure)</div><div class="ttdoc">Wrap the passed closure with a reference counter.</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00192">ClosureCounter.h:192</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a159b270200c0a146ac2bcd3c7ebf77e6"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a159b270200c0a146ac2bcd3c7ebf77e6">ripple::ClosureCounter::operator++</a></div><div class="ttdeci">ClosureCounter & operator++()</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00064">ClosureCounter.h:64</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html"><div class="ttname"><a href="classripple_1_1ClosureCounter.html">ripple::ClosureCounter</a></div><div class="ttdoc">The role of a ClosureCounter is to assist in shutdown by letting callers wait for the completion of c...</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00054">ClosureCounter.h:55</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a063738b31b4d437c410ea4e1c2cde160"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a063738b31b4d437c410ea4e1c2cde160">ripple::ClosureCounter::joined</a></div><div class="ttdeci">bool joined() const</div><div class="ttdoc">Returns true if this has been joined.</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00217">ClosureCounter.h:217</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a14a40130eba0b1a5a12e8b8a0df809b5"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a14a40130eba0b1a5a12e8b8a0df809b5">ripple::ClosureCounter::wrap</a></div><div class="ttdeci">std::optional< Substitute< Closure > > wrap(Closure &&closure)</div><div class="ttdoc">Wrap the passed closure with a reference counter.</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00192">ClosureCounter.h:192</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a159b270200c0a146ac2bcd3c7ebf77e6"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a159b270200c0a146ac2bcd3c7ebf77e6">ripple::ClosureCounter::operator++</a></div><div class="ttdeci">ClosureCounter & operator++()</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00064">ClosureCounter.h:64</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a1ae059e35862ae4564be04cd937b77b5"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a1ae059e35862ae4564be04cd937b77b5">ripple::ClosureCounter::ClosureCounter</a></div><div class="ttdeci">ClosureCounter()=default</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a33ec531a992efd2aa1d54038ba593754"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a33ec531a992efd2aa1d54038ba593754">ripple::ClosureCounter::ClosureCounter</a></div><div class="ttdeci">ClosureCounter(ClosureCounter const &)=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a6624680820fcf0e17478b71c7c6ab0f1"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a6624680820fcf0e17478b71c7c6ab0f1">ripple::ClosureCounter::closureCount_</a></div><div class="ttdeci">std::atomic< int > closureCount_</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00060">ClosureCounter.h:60</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a6bbb44eb2decd510cba1ea86f023f1b0"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a6bbb44eb2decd510cba1ea86f023f1b0">ripple::ClosureCounter::waitForClosures_</a></div><div class="ttdeci">bool waitForClosures_</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00059">ClosureCounter.h:59</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a7657852232c52a27d41d6ec1a01b39a8"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a7657852232c52a27d41d6ec1a01b39a8">ripple::ClosureCounter::mutex_</a></div><div class="ttdeci">std::mutex mutex_</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00057">ClosureCounter.h:57</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_aa096cbe5507cabb97e71c83ff25e528d"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#aa096cbe5507cabb97e71c83ff25e528d">ripple::ClosureCounter::operator--</a></div><div class="ttdeci">ClosureCounter & operator--()</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00073">ClosureCounter.h:73</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_aa2194cbada192730b683d89a27434fb8"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#aa2194cbada192730b683d89a27434fb8">ripple::ClosureCounter::count</a></div><div class="ttdeci">int count() const</div><div class="ttdoc">Current number of Closures outstanding.</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00205">ClosureCounter.h:205</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a6624680820fcf0e17478b71c7c6ab0f1"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a6624680820fcf0e17478b71c7c6ab0f1">ripple::ClosureCounter::closureCount_</a></div><div class="ttdeci">std::atomic< int > closureCount_</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00060">ClosureCounter.h:60</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a6bbb44eb2decd510cba1ea86f023f1b0"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a6bbb44eb2decd510cba1ea86f023f1b0">ripple::ClosureCounter::waitForClosures_</a></div><div class="ttdeci">bool waitForClosures_</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00059">ClosureCounter.h:59</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_a7657852232c52a27d41d6ec1a01b39a8"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#a7657852232c52a27d41d6ec1a01b39a8">ripple::ClosureCounter::mutex_</a></div><div class="ttdeci">std::mutex mutex_</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00057">ClosureCounter.h:57</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_aa096cbe5507cabb97e71c83ff25e528d"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#aa096cbe5507cabb97e71c83ff25e528d">ripple::ClosureCounter::operator--</a></div><div class="ttdeci">ClosureCounter & operator--()</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00073">ClosureCounter.h:73</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_aa2194cbada192730b683d89a27434fb8"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#aa2194cbada192730b683d89a27434fb8">ripple::ClosureCounter::count</a></div><div class="ttdeci">int count() const</div><div class="ttdoc">Current number of Closures outstanding.</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00205">ClosureCounter.h:205</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_add5769c13c89ad4200869278b9b27ae7"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#add5769c13c89ad4200869278b9b27ae7">ripple::ClosureCounter::operator=</a></div><div class="ttdeci">ClosureCounter & operator=(ClosureCounter const &)=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_ae81daf5aa300babc764a8d170482230f"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#ae81daf5aa300babc764a8d170482230f">ripple::ClosureCounter::~ClosureCounter</a></div><div class="ttdeci">~ClosureCounter()</div><div class="ttdoc">Destructor verifies all in-flight closures are complete.</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00153">ClosureCounter.h:153</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_ae88e054a2fb5bf4f9f5098783b2e20fe"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#ae88e054a2fb5bf4f9f5098783b2e20fe">ripple::ClosureCounter::allClosuresDoneCond_</a></div><div class="ttdeci">std::condition_variable allClosuresDoneCond_</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00058">ClosureCounter.h:58</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_af0786d10092850fd4a1f10d0bec927a7"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#af0786d10092850fd4a1f10d0bec927a7">ripple::ClosureCounter::join</a></div><div class="ttdeci">void join(char const *name, std::chrono::milliseconds wait, beast::Journal j)</div><div class="ttdoc">Returns once all counted in-flight closures are destroyed.</div><div class="ttdef"><b>Definition:</b> <a href="ClosureCounter_8h_source.html#l00166">ClosureCounter.h:166</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_ae81daf5aa300babc764a8d170482230f"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#ae81daf5aa300babc764a8d170482230f">ripple::ClosureCounter::~ClosureCounter</a></div><div class="ttdeci">~ClosureCounter()</div><div class="ttdoc">Destructor verifies all in-flight closures are complete.</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00153">ClosureCounter.h:153</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_ae88e054a2fb5bf4f9f5098783b2e20fe"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#ae88e054a2fb5bf4f9f5098783b2e20fe">ripple::ClosureCounter::allClosuresDoneCond_</a></div><div class="ttdeci">std::condition_variable allClosuresDoneCond_</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00058">ClosureCounter.h:58</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ClosureCounter_html_af0786d10092850fd4a1f10d0bec927a7"><div class="ttname"><a href="classripple_1_1ClosureCounter.html#af0786d10092850fd4a1f10d0bec927a7">ripple::ClosureCounter::join</a></div><div class="ttdeci">void join(char const *name, std::chrono::milliseconds wait, beast::Journal j)</div><div class="ttdoc">Returns once all counted in-flight closures are destroyed.</div><div class="ttdef"><b>Definition</b> <a href="ClosureCounter_8h_source.html#l00166">ClosureCounter.h:166</a></div></div>
|
||||
<div class="ttc" id="acondition_variable_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/condition_variable.html">condition_variable</a></div></div>
|
||||
<div class="ttc" id="aduration_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::milliseconds</a></div></div>
|
||||
<div class="ttc" id="aemplace_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional/emplace.html">std::optional::emplace</a></div><div class="ttdeci">T emplace(T... args)</div></div>
|
||||
<div class="ttc" id="ais_move_constructible_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_move_constructible.html">std::is_nothrow_move_constructible</a></div></div>
|
||||
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same</a></div></div>
|
||||
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div>
|
||||
<div class="ttc" id="alock_guard_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a></div></div>
|
||||
<div class="ttc" id="amutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="algorithm_8h_source.html#l00025">algorithm.h:25</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition</b> <a href="algorithm_8h_source.html#l00025">algorithm.h:25</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a2fca0f72cfacc04d15ad41d84ebf46fda965dbaac085fc891bfbbd4f9d145bbc8"><div class="ttname"><a href="namespaceripple.html#a2fca0f72cfacc04d15ad41d84ebf46fda965dbaac085fc891bfbbd4f9d145bbc8">ripple::StrandDirection::forward</a></div><div class="ttdeci">@ forward</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a94e13759bd026c8ac305482e17f05adb"><div class="ttname"><a href="namespaceripple.html#a94e13759bd026c8ac305482e17f05adb">ripple::debugLog</a></div><div class="ttdeci">beast::Journal debugLog()</div><div class="ttdoc">Returns a debug journal.</div><div class="ttdef"><b>Definition:</b> <a href="Log_8cpp_source.html#l00468">Log.cpp:468</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a94e13759bd026c8ac305482e17f05adb"><div class="ttname"><a href="namespaceripple.html#a94e13759bd026c8ac305482e17f05adb">ripple::debugLog</a></div><div class="ttdeci">beast::Journal debugLog()</div><div class="ttdoc">Returns a debug journal.</div><div class="ttdef"><b>Definition</b> <a href="Log_8cpp_source.html#l00468">Log.cpp:468</a></div></div>
|
||||
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace.</div></div>
|
||||
<div class="ttc" id="anotify_all_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/condition_variable/notify_all.html">std::condition_variable::notify_all</a></div><div class="ttdeci">T notify_all(T... args)</div></div>
|
||||
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a></div></div>
|
||||
@@ -309,7 +342,7 @@ $(function() {
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
|
||||
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user