Files
rippled/io__latency__probe_8h_source.html
2025-09-18 10:58:55 -07:00

428 lines
75 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" lang="en-US">
<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.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: io_latency_probe.h Source File</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 id="projectrow">
<td id="projectalign">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;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()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0103a8ad82dcc2c51f5cde661b4b5cb7.html">xrpl</a></li><li class="navelem"><a class="el" href="dir_31b47b71b675f5c4d1b67be42516b2a9.html">beast</a></li><li class="navelem"><a class="el" href="dir_7fc87a7dbd766c911719135488302a4b.html">asio</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">io_latency_probe.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> This file is part of Beast: https://github.com/vinniefalco/Beast</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Copyright 2013, Vinnie Falco &lt;vinnie.falco@gmail.com&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">*/</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">//==============================================================================</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#ifndef BEAST_ASIO_IO_LATENCY_PROBE_H_INCLUDED</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#define BEAST_ASIO_IO_LATENCY_PROBE_H_INCLUDED</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &lt;xrpl/beast/utility/instrumentation.h&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &lt;boost/asio/basic_waitable_timer.hpp&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &lt;boost/asio/io_context.hpp&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;boost/asio/post.hpp&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/chrono.html">chrono</a>&gt;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/condition_variable.html">condition_variable</a>&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>&gt;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/stdexcept.html">stdexcept</a>&gt;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacebeast.html">beast</a> {</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">template</span> &lt;<span class="keyword">class</span> Clock&gt;</div>
<div class="foldopen" id="foldopen00038" data-start="{" data-end="};">
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html"> 38</a></span><span class="keyword">class </span><a class="code hl_class" href="classbeast_1_1io__latency__probe.html">io_latency_probe</a></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span>{</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a686c16ebff88519c5a04a9be08b86b04"> 41</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1io__latency__probe.html#a686c16ebff88519c5a04a9be08b86b04">duration</a> = <span class="keyword">typename</span> Clock::duration;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#af3e7ad1c48054c4e9363aa7a4d69bc1d"> 42</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classbeast_1_1io__latency__probe.html#af3e7ad1c48054c4e9363aa7a4d69bc1d">time_point</a> = <span class="keyword">typename</span> Clock::time_point;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae"> 44</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html">std::recursive_mutex</a> <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>;</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#abcfd188c27ce5224fd41dc8cf0e2d659"> 45</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable_any.html">std::condition_variable_any</a> <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#abcfd188c27ce5224fd41dc8cf0e2d659">m_cond</a>;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a783c2279e0f950923ffdbdd8997ce8c3"> 46</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a783c2279e0f950923ffdbdd8997ce8c3">m_count</a>;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a0e42d183a6ff580915cb318ce995870b"> 47</a></span> <a class="code hl_typedef" href="classbeast_1_1io__latency__probe.html#a686c16ebff88519c5a04a9be08b86b04">duration</a> <span class="keyword">const</span> <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a0e42d183a6ff580915cb318ce995870b">m_period</a>;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#aae383624a03cc91e1c9f71d67a931958"> 48</a></span> boost::asio::io_context&amp; <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#aae383624a03cc91e1c9f71d67a931958">m_ios</a>;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a36fc1e9d3fa836e6f8913643eed50707"> 49</a></span> boost::asio::basic_waitable_timer&lt;std::chrono::steady_clock&gt; <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a36fc1e9d3fa836e6f8913643eed50707">m_timer</a>;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477"> 50</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a>;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span><span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00053" data-start="{" data-end="}">
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#ac0e358f4a3a4671f79406fc47c2e4fb3"> 53</a></span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#ac0e358f4a3a4671f79406fc47c2e4fb3">io_latency_probe</a>(<a class="code hl_typedef" href="classbeast_1_1io__latency__probe.html#a686c16ebff88519c5a04a9be08b86b04">duration</a> <span class="keyword">const</span>&amp; period, boost::asio::io_context&amp; ios)</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> : <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a783c2279e0f950923ffdbdd8997ce8c3">m_count</a>(1)</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> , <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a0e42d183a6ff580915cb318ce995870b">m_period</a>(period)</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> , <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#aae383624a03cc91e1c9f71d67a931958">m_ios</a>(ios)</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> , <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a36fc1e9d3fa836e6f8913643eed50707">m_timer</a>(<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#aae383624a03cc91e1c9f71d67a931958">m_ios</a>)</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> , <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a>(false)</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> {</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> }</div>
</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="foldopen" id="foldopen00062" data-start="{" data-end="}">
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#aa96df10dfc2d320b6a87e168cb55f729"> 62</a></span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#aa96df10dfc2d320b6a87e168cb55f729">~io_latency_probe</a>()</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> {</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a>&lt;<span class="keyword">decltype</span>(<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>)&gt; lock(<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#a3aacab2155a327714b711dc3dbc8c69c">cancel</a>(lock, <span class="keyword">true</span>);</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> }</div>
</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> boost::asio::io_context&amp;</div>
<div class="foldopen" id="foldopen00071" data-start="{" data-end="}">
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#aa588798e305a23b3ce4b7e4d8afa9c0f"> 71</a></span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#aa588798e305a23b3ce4b7e4d8afa9c0f">get_io_context</a>()</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> {</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#aae383624a03cc91e1c9f71d67a931958">m_ios</a>;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> }</div>
</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> boost::asio::io_context <span class="keyword">const</span>&amp;</div>
<div class="foldopen" id="foldopen00077" data-start="{" data-end="}">
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a3d616ba99914b172233dd64dc68ada34"> 77</a></span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#a3d616ba99914b172233dd64dc68ada34">get_io_context</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#aae383624a03cc91e1c9f71d67a931958">m_ios</a>;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> }</div>
</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00088" data-start="{" data-end="}">
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a3aacab2155a327714b711dc3dbc8c69c"> 88</a></span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#a3aacab2155a327714b711dc3dbc8c69c">cancel</a>()</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> {</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a>&lt;<span class="keyword">decltype</span>(<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>)&gt; lock(<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#a3aacab2155a327714b711dc3dbc8c69c">cancel</a>(lock, <span class="keyword">true</span>);</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> }</div>
</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00095" data-start="{" data-end="}">
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#adaee7525295db67f85573a6b73eff113"> 95</a></span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#adaee7525295db67f85573a6b73eff113">cancel_async</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> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a>&lt;<span class="keyword">decltype</span>(<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>)&gt; lock(<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#a3aacab2155a327714b711dc3dbc8c69c">cancel</a>(lock, <span class="keyword">false</span>);</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> }</div>
</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> Handler&gt;</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00108" data-start="{" data-end="}">
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a583609000bb804d60aa7404f8d01762b"> 108</a></span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#a583609000bb804d60aa7404f8d01762b">sample_one</a>(Handler&amp;&amp; handler)</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> {</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</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="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a>)</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keywordflow">throw</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/error/logic_error.html">std::logic_error</a>(<span class="stringliteral">&quot;io_latency_probe is canceled&quot;</span>);</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> boost::asio::post(</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#aae383624a03cc91e1c9f71d67a931958">m_ios</a>,</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <a class="code hl_struct" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op&lt;Handler&gt;</a>(</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::forward&lt;Handler&gt;</a>(handler), Clock::now(), <span class="keyword">false</span>, <span class="keyword">this</span>));</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> }</div>
</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> Handler&gt;</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00125" data-start="{" data-end="}">
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a0d31e25fc6af4e3ed0ff85c82e0a5599"> 125</a></span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#a0d31e25fc6af4e3ed0ff85c82e0a5599">sample</a>(Handler&amp;&amp; handler)</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> {</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</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="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a>)</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="keywordflow">throw</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/error/logic_error.html">std::logic_error</a>(<span class="stringliteral">&quot;io_latency_probe is canceled&quot;</span>);</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> boost::asio::post(</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#aae383624a03cc91e1c9f71d67a931958">m_ios</a>,</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <a class="code hl_struct" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op&lt;Handler&gt;</a>(</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::forward&lt;Handler&gt;</a>(handler), Clock::now(), <span class="keyword">true</span>, <span class="keyword">this</span>));</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> }</div>
</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keywordtype">void</span></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="classbeast_1_1io__latency__probe.html#abb9c67df3d6e343c2712618752c6ad5f"> 138</a></span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#abb9c67df3d6e343c2712618752c6ad5f">cancel</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a>&lt;<span class="keyword">decltype</span>(<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>)&gt;&amp; lock, <span class="keywordtype">bool</span> wait)</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">if</span> (!<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a>)</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> {</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> --<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a783c2279e0f950923ffdbdd8997ce8c3">m_count</a>;</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a> = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> }</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keywordflow">if</span> (wait)</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#abcfd188c27ce5224fd41dc8cf0e2d659">m_cond</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable_any/wait.html">wait</a>(lock, [<span class="keyword">this</span>] { <span class="keywordflow">return</span> this-&gt;m_count == 0; });</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> }</div>
</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00151" data-start="{" data-end="}">
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a4ad793e4145f2062fcbe2a2c25dde6c4"> 151</a></span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#a4ad793e4145f2062fcbe2a2c25dde6c4">addref</a>()</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> {</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</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="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> ++<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a783c2279e0f950923ffdbdd8997ce8c3">m_count</a>;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> }</div>
</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> </div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00158" data-start="{" data-end="}">
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a7f82fe723caebead49ca8bdf479ebc22"> 158</a></span> <a class="code hl_function" href="classbeast_1_1io__latency__probe.html#a7f82fe723caebead49ca8bdf479ebc22">release</a>()</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> {</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</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="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="keywordflow">if</span> (--<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a783c2279e0f950923ffdbdd8997ce8c3">m_count</a> == 0)</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#abcfd188c27ce5224fd41dc8cf0e2d659">m_cond</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable_any/notify_all.html">notify_all</a>();</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> }</div>
</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> Handler&gt;</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="structbeast_1_1io__latency__probe_1_1sample__op.html"> 166</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a></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"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70"> 168</a></span> Handler <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>;</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a73ae9b05ec95c78daa47c77629a7737e"> 169</a></span> <a class="code hl_typedef" href="classbeast_1_1io__latency__probe.html#af3e7ad1c48054c4e9363aa7a4d69bc1d">time_point</a> <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a73ae9b05ec95c78daa47c77629a7737e">m_start</a>;</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d"> 170</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>;</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac"> 171</a></span> <a class="code hl_class" href="classbeast_1_1io__latency__probe.html">io_latency_probe</a>* <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>;</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
<div class="foldopen" id="foldopen00173" data-start="{" data-end="}">
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a3f6c9fa8da55b8e04bbb54744ae7a19c"> 173</a></span> <a class="code hl_function" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a3f6c9fa8da55b8e04bbb54744ae7a19c">sample_op</a>(</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> Handler <span class="keyword">const</span>&amp; handler,</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <a class="code hl_typedef" href="classbeast_1_1io__latency__probe.html#af3e7ad1c48054c4e9363aa7a4d69bc1d">time_point</a> <span class="keyword">const</span>&amp; start,</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <span class="keywordtype">bool</span> repeat,</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <a class="code hl_class" href="classbeast_1_1io__latency__probe.html">io_latency_probe</a>* probe)</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> : <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>(handler)</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> , <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a73ae9b05ec95c78daa47c77629a7737e">m_start</a>(start)</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> , <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>(repeat)</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> , <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>(probe)</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> {</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> XRPL_ASSERT(</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>,</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <span class="stringliteral">&quot;beast::io_latency_probe::sample_op::sample_op : non-null &quot;</span></div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="stringliteral">&quot;probe input&quot;</span>);</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-&gt;<a class="code hl_function" href="classbeast_1_1io__latency__probe.html#a4ad793e4145f2062fcbe2a2c25dde6c4">addref</a>();</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> }</div>
</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> </div>
<div class="foldopen" id="foldopen00190" data-start="{" data-end="}">
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a6b9ce38a45810b1a9a97932055ca2b6c"> 190</a></span> <a class="code hl_function" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a6b9ce38a45810b1a9a97932055ca2b6c">sample_op</a>(<a class="code hl_struct" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a>&amp;&amp; from) noexcept</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> : <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>(std::move(from.m_handler))</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> , <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a73ae9b05ec95c78daa47c77629a7737e">m_start</a>(from.m_start)</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> , <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>(from.m_repeat)</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> , <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>(from.m_probe)</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> XRPL_ASSERT(</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>,</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <span class="stringliteral">&quot;beast::io_latency_probe::sample_op::sample_op(sample_op&amp;&amp;) : &quot;</span></div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> <span class="stringliteral">&quot;non-null probe input&quot;</span>);</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> from.m_probe = <span class="keyword">nullptr</span>;</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="l00203" name="l00203"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae6149155d6e60fa88b66614888b5d7bf"> 203</a></span> <a class="code hl_function" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae6149155d6e60fa88b66614888b5d7bf">sample_op</a>(<a class="code hl_struct" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a> <span class="keyword">const</span>&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> <a class="code hl_struct" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a></div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a43ebf12aa1bf22e649854b987328d2dd"> 205</a></span> <a class="code hl_function" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a43ebf12aa1bf22e649854b987328d2dd">operator=</a>(<a class="code hl_struct" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a> <span class="keyword">const</span>&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <a class="code hl_struct" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a>&amp;</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a4411ce8b411b9b60a01a60e0fdc595cb"> 207</a></span> <a class="code hl_function" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a4411ce8b411b9b60a01a60e0fdc595cb">operator=</a>(<a class="code hl_struct" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a>&amp;&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> </div>
<div class="foldopen" id="foldopen00209" data-start="{" data-end="}">
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a057a1ce83f97534fad8b31f57ac3ad8e"> 209</a></span> <a class="code hl_function" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a057a1ce83f97534fad8b31f57ac3ad8e">~sample_op</a>()</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> {</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>)</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-&gt;<a class="code hl_function" href="classbeast_1_1io__latency__probe.html#a7f82fe723caebead49ca8bdf479ebc22">release</a>();</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> }</div>
</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> </div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00216" data-start="{" data-end="}">
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a2f11d5cd03e7e1e4fe9900fe1c8abb47"> 216</a></span> <a class="code hl_function" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a2f11d5cd03e7e1e4fe9900fe1c8abb47">operator()</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>)</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> <span class="keyword">typename</span> Clock::time_point <span class="keyword">const</span> now(Clock::now());</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> <span class="keyword">typename</span> Clock::duration <span class="keyword">const</span> elapsed(now - <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a73ae9b05ec95c78daa47c77629a7737e">m_start</a>);</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> </div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>(elapsed);</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</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> <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="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-&gt;<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-&gt;<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a>)</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> }</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> </div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>)</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> {</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> <span class="comment">// Calculate when we want to sample again, and</span></div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> <span class="comment">// adjust for the expected latency.</span></div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> <span class="comment">//</span></div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> <span class="keyword">typename</span> Clock::time_point <span class="keyword">const</span> when(</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> now + <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-&gt;<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a0e42d183a6ff580915cb318ce995870b">m_period</a> - 2 * elapsed);</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> </div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <span class="keywordflow">if</span> (when &lt;= now)</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> {</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> <span class="comment">// The latency is too high to maintain the desired</span></div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <span class="comment">// period so don&#39;t bother with a timer.</span></div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> <span class="comment">//</span></div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> boost::asio::post(</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-&gt;<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#aae383624a03cc91e1c9f71d67a931958">m_ios</a>,</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> <a class="code hl_struct" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op&lt;Handler&gt;</a>(<a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>, now, <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>, <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>));</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> }</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> <span class="keywordflow">else</span></div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> {</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-&gt;<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a36fc1e9d3fa836e6f8913643eed50707">m_timer</a>.expires_after(when - now);</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-&gt;<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#a36fc1e9d3fa836e6f8913643eed50707">m_timer</a>.async_wait(</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <a class="code hl_struct" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op&lt;Handler&gt;</a>(<a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>, now, <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>, <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>));</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> }</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> }</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> }</div>
</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> </div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00258" data-start="{" data-end="}">
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#abe82274c277a4317ef272e4fb2873277"> 258</a></span> <a class="code hl_function" href="structbeast_1_1io__latency__probe_1_1sample__op.html#abe82274c277a4317ef272e4fb2873277">operator()</a>(boost::system::error_code <span class="keyword">const</span>&amp; ec)</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> {</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>)</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> <span class="keyword">typename</span> Clock::time_point <span class="keyword">const</span> now(Clock::now());</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> boost::asio::post(</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-&gt;<a class="code hl_variable" href="classbeast_1_1io__latency__probe.html#aae383624a03cc91e1c9f71d67a931958">m_ios</a>,</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <a class="code hl_struct" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op&lt;Handler&gt;</a>(<a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>, now, <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>, <a class="code hl_variable" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>));</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> }</div>
</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> };</div>
</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span>};</div>
</div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> </div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span>} <span class="comment">// namespace beast</span></div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> </div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="achrono_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/chrono.html">chrono</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html">beast::io_latency_probe</a></div><div class="ttdoc">Measures handler latency on an io_context queue.</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00038">io_latency_probe.h:39</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_a0d31e25fc6af4e3ed0ff85c82e0a5599"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#a0d31e25fc6af4e3ed0ff85c82e0a5599">beast::io_latency_probe::sample</a></div><div class="ttdeci">void sample(Handler &amp;&amp;handler)</div><div class="ttdoc">Initiate continuous i/o latency sampling.</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00125">io_latency_probe.h:125</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_a0e42d183a6ff580915cb318ce995870b"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#a0e42d183a6ff580915cb318ce995870b">beast::io_latency_probe::m_period</a></div><div class="ttdeci">duration const m_period</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00047">io_latency_probe.h:47</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_a29c18ff449978ef74989fce7dc4d8bae"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">beast::io_latency_probe::m_mutex</a></div><div class="ttdeci">std::recursive_mutex m_mutex</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00044">io_latency_probe.h:44</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_a36fc1e9d3fa836e6f8913643eed50707"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#a36fc1e9d3fa836e6f8913643eed50707">beast::io_latency_probe::m_timer</a></div><div class="ttdeci">boost::asio::basic_waitable_timer&lt; std::chrono::steady_clock &gt; m_timer</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00049">io_latency_probe.h:49</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_a3aacab2155a327714b711dc3dbc8c69c"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#a3aacab2155a327714b711dc3dbc8c69c">beast::io_latency_probe::cancel</a></div><div class="ttdeci">void cancel()</div><div class="ttdoc">Cancel all pending i/o.</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00088">io_latency_probe.h:88</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_a3d616ba99914b172233dd64dc68ada34"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#a3d616ba99914b172233dd64dc68ada34">beast::io_latency_probe::get_io_context</a></div><div class="ttdeci">boost::asio::io_context const &amp; get_io_context() const</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00077">io_latency_probe.h:77</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_a4ad793e4145f2062fcbe2a2c25dde6c4"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#a4ad793e4145f2062fcbe2a2c25dde6c4">beast::io_latency_probe::addref</a></div><div class="ttdeci">void addref()</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00151">io_latency_probe.h:151</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_a583609000bb804d60aa7404f8d01762b"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#a583609000bb804d60aa7404f8d01762b">beast::io_latency_probe::sample_one</a></div><div class="ttdeci">void sample_one(Handler &amp;&amp;handler)</div><div class="ttdoc">Measure one sample of i/o latency.</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00108">io_latency_probe.h:108</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_a686c16ebff88519c5a04a9be08b86b04"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#a686c16ebff88519c5a04a9be08b86b04">beast::io_latency_probe::duration</a></div><div class="ttdeci">typename Clock::duration duration</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00041">io_latency_probe.h:41</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_a783c2279e0f950923ffdbdd8997ce8c3"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#a783c2279e0f950923ffdbdd8997ce8c3">beast::io_latency_probe::m_count</a></div><div class="ttdeci">std::size_t m_count</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00046">io_latency_probe.h:46</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_a7f82fe723caebead49ca8bdf479ebc22"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#a7f82fe723caebead49ca8bdf479ebc22">beast::io_latency_probe::release</a></div><div class="ttdeci">void release()</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00158">io_latency_probe.h:158</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_aa588798e305a23b3ce4b7e4d8afa9c0f"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#aa588798e305a23b3ce4b7e4d8afa9c0f">beast::io_latency_probe::get_io_context</a></div><div class="ttdeci">boost::asio::io_context &amp; get_io_context()</div><div class="ttdoc">Return the io_context associated with the latency probe.</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00071">io_latency_probe.h:71</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_aa96df10dfc2d320b6a87e168cb55f729"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#aa96df10dfc2d320b6a87e168cb55f729">beast::io_latency_probe::~io_latency_probe</a></div><div class="ttdeci">~io_latency_probe()</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00062">io_latency_probe.h:62</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_aae383624a03cc91e1c9f71d67a931958"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#aae383624a03cc91e1c9f71d67a931958">beast::io_latency_probe::m_ios</a></div><div class="ttdeci">boost::asio::io_context &amp; m_ios</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00048">io_latency_probe.h:48</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_abb9c67df3d6e343c2712618752c6ad5f"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#abb9c67df3d6e343c2712618752c6ad5f">beast::io_latency_probe::cancel</a></div><div class="ttdeci">void cancel(std::unique_lock&lt; decltype(m_mutex)&gt; &amp;lock, bool wait)</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00138">io_latency_probe.h:138</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_abcfd188c27ce5224fd41dc8cf0e2d659"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#abcfd188c27ce5224fd41dc8cf0e2d659">beast::io_latency_probe::m_cond</a></div><div class="ttdeci">std::condition_variable_any m_cond</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00045">io_latency_probe.h:45</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_ac0e358f4a3a4671f79406fc47c2e4fb3"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#ac0e358f4a3a4671f79406fc47c2e4fb3">beast::io_latency_probe::io_latency_probe</a></div><div class="ttdeci">io_latency_probe(duration const &amp;period, boost::asio::io_context &amp;ios)</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00053">io_latency_probe.h:53</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_adaee7525295db67f85573a6b73eff113"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#adaee7525295db67f85573a6b73eff113">beast::io_latency_probe::cancel_async</a></div><div class="ttdeci">void cancel_async()</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00095">io_latency_probe.h:95</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_af3e7ad1c48054c4e9363aa7a4d69bc1d"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#af3e7ad1c48054c4e9363aa7a4d69bc1d">beast::io_latency_probe::time_point</a></div><div class="ttdeci">typename Clock::time_point time_point</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00042">io_latency_probe.h:42</a></div></div>
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_afc81df0e2b1263891edacabf50bc9477"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">beast::io_latency_probe::m_cancel</a></div><div class="ttdeci">bool m_cancel</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00050">io_latency_probe.h:50</a></div></div>
<div class="ttc" id="acondition_variable_any_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/condition_variable_any.html">std::condition_variable_any</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="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="alogic_error_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/logic_error.html">std::logic_error</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="anamespacebeast_html"><div class="ttname"><a href="namespacebeast.html">beast</a></div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00672">base_uint.h:672</a></div></div>
<div class="ttc" id="anotify_all_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/condition_variable_any/notify_all.html">std::condition_variable_any::notify_all</a></div><div class="ttdeci">T notify_all(T... args)</div></div>
<div class="ttc" id="arecursive_mutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html">std::recursive_mutex</a></div></div>
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
<div class="ttc" id="astdexcept_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/stdexcept.html">stdexcept</a></div></div>
<div class="ttc" id="astructbeast_1_1io__latency__probe_1_1sample__op_html"><div class="ttname"><a href="structbeast_1_1io__latency__probe_1_1sample__op.html">beast::io_latency_probe::sample_op</a></div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00166">io_latency_probe.h:167</a></div></div>
<div class="ttc" id="astructbeast_1_1io__latency__probe_1_1sample__op_html_a057a1ce83f97534fad8b31f57ac3ad8e"><div class="ttname"><a href="structbeast_1_1io__latency__probe_1_1sample__op.html#a057a1ce83f97534fad8b31f57ac3ad8e">beast::io_latency_probe::sample_op::~sample_op</a></div><div class="ttdeci">~sample_op()</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00209">io_latency_probe.h:209</a></div></div>
<div class="ttc" id="astructbeast_1_1io__latency__probe_1_1sample__op_html_a2f11d5cd03e7e1e4fe9900fe1c8abb47"><div class="ttname"><a href="structbeast_1_1io__latency__probe_1_1sample__op.html#a2f11d5cd03e7e1e4fe9900fe1c8abb47">beast::io_latency_probe::sample_op::operator()</a></div><div class="ttdeci">void operator()() const</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00216">io_latency_probe.h:216</a></div></div>
<div class="ttc" id="astructbeast_1_1io__latency__probe_1_1sample__op_html_a3f6c9fa8da55b8e04bbb54744ae7a19c"><div class="ttname"><a href="structbeast_1_1io__latency__probe_1_1sample__op.html#a3f6c9fa8da55b8e04bbb54744ae7a19c">beast::io_latency_probe::sample_op::sample_op</a></div><div class="ttdeci">sample_op(Handler const &amp;handler, time_point const &amp;start, bool repeat, io_latency_probe *probe)</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00173">io_latency_probe.h:173</a></div></div>
<div class="ttc" id="astructbeast_1_1io__latency__probe_1_1sample__op_html_a43ebf12aa1bf22e649854b987328d2dd"><div class="ttname"><a href="structbeast_1_1io__latency__probe_1_1sample__op.html#a43ebf12aa1bf22e649854b987328d2dd">beast::io_latency_probe::sample_op::operator=</a></div><div class="ttdeci">sample_op operator=(sample_op const &amp;)=delete</div></div>
<div class="ttc" id="astructbeast_1_1io__latency__probe_1_1sample__op_html_a4411ce8b411b9b60a01a60e0fdc595cb"><div class="ttname"><a href="structbeast_1_1io__latency__probe_1_1sample__op.html#a4411ce8b411b9b60a01a60e0fdc595cb">beast::io_latency_probe::sample_op::operator=</a></div><div class="ttdeci">sample_op &amp; operator=(sample_op &amp;&amp;)=delete</div></div>
<div class="ttc" id="astructbeast_1_1io__latency__probe_1_1sample__op_html_a6b9ce38a45810b1a9a97932055ca2b6c"><div class="ttname"><a href="structbeast_1_1io__latency__probe_1_1sample__op.html#a6b9ce38a45810b1a9a97932055ca2b6c">beast::io_latency_probe::sample_op::sample_op</a></div><div class="ttdeci">sample_op(sample_op &amp;&amp;from) noexcept</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00190">io_latency_probe.h:190</a></div></div>
<div class="ttc" id="astructbeast_1_1io__latency__probe_1_1sample__op_html_a73ae9b05ec95c78daa47c77629a7737e"><div class="ttname"><a href="structbeast_1_1io__latency__probe_1_1sample__op.html#a73ae9b05ec95c78daa47c77629a7737e">beast::io_latency_probe::sample_op::m_start</a></div><div class="ttdeci">time_point m_start</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00169">io_latency_probe.h:169</a></div></div>
<div class="ttc" id="astructbeast_1_1io__latency__probe_1_1sample__op_html_a74ef18fb1ad3ca0f3e82325355cb19ac"><div class="ttname"><a href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">beast::io_latency_probe::sample_op::m_probe</a></div><div class="ttdeci">io_latency_probe * m_probe</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00171">io_latency_probe.h:171</a></div></div>
<div class="ttc" id="astructbeast_1_1io__latency__probe_1_1sample__op_html_a79de04ebd228ee46d67263e9198c9d70"><div class="ttname"><a href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">beast::io_latency_probe::sample_op::m_handler</a></div><div class="ttdeci">Handler m_handler</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00168">io_latency_probe.h:168</a></div></div>
<div class="ttc" id="astructbeast_1_1io__latency__probe_1_1sample__op_html_abe82274c277a4317ef272e4fb2873277"><div class="ttname"><a href="structbeast_1_1io__latency__probe_1_1sample__op.html#abe82274c277a4317ef272e4fb2873277">beast::io_latency_probe::sample_op::operator()</a></div><div class="ttdeci">void operator()(boost::system::error_code const &amp;ec)</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00258">io_latency_probe.h:258</a></div></div>
<div class="ttc" id="astructbeast_1_1io__latency__probe_1_1sample__op_html_ae4182ef751650c53c7335bdb0637d79d"><div class="ttname"><a href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">beast::io_latency_probe::sample_op::m_repeat</a></div><div class="ttdeci">bool m_repeat</div><div class="ttdef"><b>Definition</b> <a href="io__latency__probe_8h_source.html#l00170">io_latency_probe.h:170</a></div></div>
<div class="ttc" id="astructbeast_1_1io__latency__probe_1_1sample__op_html_ae6149155d6e60fa88b66614888b5d7bf"><div class="ttname"><a href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae6149155d6e60fa88b66614888b5d7bf">beast::io_latency_probe::sample_op::sample_op</a></div><div class="ttdeci">sample_op(sample_op const &amp;)=delete</div></div>
<div class="ttc" id="aunique_lock_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a></div></div>
<div class="ttc" id="await_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/condition_variable_any/wait.html">std::condition_variable_any::wait</a></div><div class="ttdeci">T wait(T... args)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<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>