mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 19:45:53 +00:00
363 lines
66 KiB
HTML
363 lines
66 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>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 style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_875063d0bf0fe9cb23dcbe977d2f1b80.html">beast</a></li><li class="navelem"><a class="el" href="dir_c821d2da645f3d14eb0ad0dc0d5f3ad9.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 name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a 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 name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com></span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
|
|
<div class="line"><a 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 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 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 name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
|
|
<div class="line"><a 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 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 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 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 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 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 name="l00017"></a><span class="lineno"> 17</span> <span class="comment">*/</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//==============================================================================</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
|
<div class="line"><a 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 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 name="l00022"></a><span class="lineno"> 22</span>  </div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <boost/asio/basic_waitable_timer.hpp></span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <boost/asio/io_service.hpp></span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/chrono.html">chrono</a>></span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/condition_variable.html">condition_variable</a>></span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>></span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/stdexcept.html">stdexcept</a>></span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span><a class="code" href="namespacebeast.html">beast</a> {</div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">template</span> <<span class="keyword">class</span> Clock></div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html"> 34</a></span> <span class="keyword">class </span><a class="code" href="classbeast_1_1io__latency__probe.html">io_latency_probe</a></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> {</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a686c16ebff88519c5a04a9be08b86b04"> 37</a></span>  <span class="keyword">using</span> <a class="code" href="classbeast_1_1io__latency__probe.html#a686c16ebff88519c5a04a9be08b86b04">duration</a> = <span class="keyword">typename</span> Clock::duration;</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#af3e7ad1c48054c4e9363aa7a4d69bc1d"> 38</a></span>  <span class="keyword">using</span> <a class="code" href="classbeast_1_1io__latency__probe.html#af3e7ad1c48054c4e9363aa7a4d69bc1d">time_point</a> = <span class="keyword">typename</span> Clock::time_point;</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae"> 40</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/recursive_mutex.html">std::recursive_mutex</a> <a class="code" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>;</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#abcfd188c27ce5224fd41dc8cf0e2d659"> 41</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable_any.html">std::condition_variable_any</a> <a class="code" href="classbeast_1_1io__latency__probe.html#abcfd188c27ce5224fd41dc8cf0e2d659">m_cond</a>;</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a783c2279e0f950923ffdbdd8997ce8c3"> 42</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code" href="classbeast_1_1io__latency__probe.html#a783c2279e0f950923ffdbdd8997ce8c3">m_count</a>;</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a7a23e5981067195890e71bb44b07e0f0"> 43</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html#a686c16ebff88519c5a04a9be08b86b04">duration</a> <span class="keyword">const</span> <a class="code" href="classbeast_1_1io__latency__probe.html#a7a23e5981067195890e71bb44b07e0f0">m_period</a>;</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#aba1ffe854135963273599b10d1a808f1"> 44</a></span>  boost::asio::io_service& <a class="code" href="classbeast_1_1io__latency__probe.html#aba1ffe854135963273599b10d1a808f1">m_ios</a>;</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a36fc1e9d3fa836e6f8913643eed50707"> 45</a></span>  boost::asio::basic_waitable_timer<std::chrono::steady_clock> <a class="code" href="classbeast_1_1io__latency__probe.html#a36fc1e9d3fa836e6f8913643eed50707">m_timer</a>;</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477"> 46</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a>;</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#afdfc98452171bf713bc0e9dc177a9922"> 49</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html#afdfc98452171bf713bc0e9dc177a9922">io_latency_probe</a>(<a class="code" href="classbeast_1_1io__latency__probe.html#a686c16ebff88519c5a04a9be08b86b04">duration</a> <span class="keyword">const</span>& period, boost::asio::io_service& ios)</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  : <a class="code" href="classbeast_1_1io__latency__probe.html#a783c2279e0f950923ffdbdd8997ce8c3">m_count</a>(1)</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  , <a class="code" href="classbeast_1_1io__latency__probe.html#a7a23e5981067195890e71bb44b07e0f0">m_period</a>(period)</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  , <a class="code" href="classbeast_1_1io__latency__probe.html#aba1ffe854135963273599b10d1a808f1">m_ios</a>(ios)</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  , <a class="code" href="classbeast_1_1io__latency__probe.html#a36fc1e9d3fa836e6f8913643eed50707">m_timer</a>(<a class="code" href="classbeast_1_1io__latency__probe.html#aba1ffe854135963273599b10d1a808f1">m_ios</a>)</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  , <a class="code" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a>(false)</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  {</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  }</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#aa96df10dfc2d320b6a87e168cb55f729"> 58</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html#aa96df10dfc2d320b6a87e168cb55f729">~io_latency_probe</a>()</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  {</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a><decltype(<a class="code" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>)> lock(<a class="code" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classbeast_1_1io__latency__probe.html#a3aacab2155a327714b711dc3dbc8c69c">cancel</a>(lock, <span class="keyword">true</span>);</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  boost::asio::io_service&</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#af112ed904aa00860d062d2900e199378"> 67</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html#af112ed904aa00860d062d2900e199378">get_io_service</a>()</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  {</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">return</span> <a class="code" href="classbeast_1_1io__latency__probe.html#aba1ffe854135963273599b10d1a808f1">m_ios</a>;</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  }</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  </div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  boost::asio::io_service <span class="keyword">const</span>&</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#ad96645a67b356dae82ecd4d2d0851b20"> 73</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html#ad96645a67b356dae82ecd4d2d0851b20">get_io_service</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="keyword"> </span>{</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">return</span> <a class="code" href="classbeast_1_1io__latency__probe.html#aba1ffe854135963273599b10d1a808f1">m_ios</a>;</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  }</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a3aacab2155a327714b711dc3dbc8c69c"> 84</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html#a3aacab2155a327714b711dc3dbc8c69c">cancel</a>()</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  {</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a><decltype(<a class="code" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>)> lock(<a class="code" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="classbeast_1_1io__latency__probe.html#a3aacab2155a327714b711dc3dbc8c69c">cancel</a>(lock, <span class="keyword">true</span>);</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  }</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#adaee7525295db67f85573a6b73eff113"> 91</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html#adaee7525295db67f85573a6b73eff113">cancel_async</a>()</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  {</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a><decltype(<a class="code" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>)> lock(<a class="code" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="classbeast_1_1io__latency__probe.html#a3aacab2155a327714b711dc3dbc8c69c">cancel</a>(lock, <span class="keyword">false</span>);</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">template</span> <<span class="keyword">class</span> Handler></div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a583609000bb804d60aa7404f8d01762b"> 104</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html#a583609000bb804d60aa7404f8d01762b">sample_one</a>(Handler&& handler)</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  {</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(<a class="code" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">if</span> (<a class="code" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a>)</div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">throw</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/error/logic_error.html">std::logic_error</a>(<span class="stringliteral">"io_latency_probe is canceled"</span>);</div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="classbeast_1_1io__latency__probe.html#aba1ffe854135963273599b10d1a808f1">m_ios</a>.post(sample_op<Handler>(</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  std::forward<Handler>(handler), Clock::now(), <span class="keyword">false</span>, <span class="keyword">this</span>));</div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  }</div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keyword">template</span> <<span class="keyword">class</span> Handler></div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a0d31e25fc6af4e3ed0ff85c82e0a5599"> 119</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html#a0d31e25fc6af4e3ed0ff85c82e0a5599">sample</a>(Handler&& handler)</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  {</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(<a class="code" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">if</span> (<a class="code" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a>)</div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">throw</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/error/logic_error.html">std::logic_error</a>(<span class="stringliteral">"io_latency_probe is canceled"</span>);</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="classbeast_1_1io__latency__probe.html#aba1ffe854135963273599b10d1a808f1">m_ios</a>.post(sample_op<Handler>(</div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  std::forward<Handler>(handler), Clock::now(), <span class="keyword">true</span>, <span class="keyword">this</span>));</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  }</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  </div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#abb9c67df3d6e343c2712618752c6ad5f"> 130</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html#abb9c67df3d6e343c2712618752c6ad5f">cancel</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a><decltype(<a class="code" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>)>& lock, <span class="keywordtype">bool</span> wait)</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  {</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">if</span> (!<a class="code" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a>)</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  {</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  --<a class="code" href="classbeast_1_1io__latency__probe.html#a783c2279e0f950923ffdbdd8997ce8c3">m_count</a>;</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a> = <span class="keyword">true</span>;</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">if</span> (wait)</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="classbeast_1_1io__latency__probe.html#abcfd188c27ce5224fd41dc8cf0e2d659">m_cond</a>.<a class="codeRef" 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->m_count == 0; });</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  }</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a4ad793e4145f2062fcbe2a2c25dde6c4"> 143</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html#a4ad793e4145f2062fcbe2a2c25dde6c4">addref</a>()</div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  {</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(<a class="code" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  ++<a class="code" href="classbeast_1_1io__latency__probe.html#a783c2279e0f950923ffdbdd8997ce8c3">m_count</a>;</div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  }</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  </div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="classbeast_1_1io__latency__probe.html#a7f82fe723caebead49ca8bdf479ebc22"> 150</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html#a7f82fe723caebead49ca8bdf479ebc22">release</a>()</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  {</div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(<a class="code" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordflow">if</span> (--<a class="code" href="classbeast_1_1io__latency__probe.html#a783c2279e0f950923ffdbdd8997ce8c3">m_count</a> == 0)</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <a class="code" href="classbeast_1_1io__latency__probe.html#abcfd188c27ce5224fd41dc8cf0e2d659">m_cond</a>.<a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable_any/notify_all.html">notify_all</a>();</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  }</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  </div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">template</span> <<span class="keyword">class</span> Handler></div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html"> 158</a></span>  <span class="keyword">struct </span><a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a></div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  {</div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70"> 160</a></span>  Handler <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>;</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a73ae9b05ec95c78daa47c77629a7737e"> 161</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html#af3e7ad1c48054c4e9363aa7a4d69bc1d">time_point</a> <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a73ae9b05ec95c78daa47c77629a7737e">m_start</a>;</div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d"> 162</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>;</div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac"> 163</a></span>  <a class="code" href="classbeast_1_1io__latency__probe.html">io_latency_probe</a>* <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>;</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  </div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a3f6c9fa8da55b8e04bbb54744ae7a19c"> 165</a></span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a3f6c9fa8da55b8e04bbb54744ae7a19c">sample_op</a>(</div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  Handler <span class="keyword">const</span>& handler,</div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="code" href="classbeast_1_1io__latency__probe.html#af3e7ad1c48054c4e9363aa7a4d69bc1d">time_point</a> <span class="keyword">const</span>& start,</div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordtype">bool</span> repeat,</div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <a class="code" href="classbeast_1_1io__latency__probe.html">io_latency_probe</a>* probe)</div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  : <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>(handler)</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  , <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a73ae9b05ec95c78daa47c77629a7737e">m_start</a>(start)</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  , <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>(repeat)</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  , <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>(probe)</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  {</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  assert(<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>);</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-><a class="code" href="classbeast_1_1io__latency__probe.html#a4ad793e4145f2062fcbe2a2c25dde6c4">addref</a>();</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  }</div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  </div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a6b9ce38a45810b1a9a97932055ca2b6c"> 179</a></span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a6b9ce38a45810b1a9a97932055ca2b6c">sample_op</a>(<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a>&& from) noexcept</div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  : <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>(std::move(from.m_handler))</div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  , <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a73ae9b05ec95c78daa47c77629a7737e">m_start</a>(from.m_start)</div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  , <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>(from.m_repeat)</div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  , <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>(from.m_probe)</div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  {</div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  assert(<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>);</div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  from.m_probe = <span class="keyword">nullptr</span>;</div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  }</div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a3f6c9fa8da55b8e04bbb54744ae7a19c">sample_op</a>(<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a></div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a43ebf12aa1bf22e649854b987328d2dd">operator=</a>(<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a>&</div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a43ebf12aa1bf22e649854b987328d2dd">operator=</a>(<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op</a>&&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  </div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a057a1ce83f97534fad8b31f57ac3ad8e"> 195</a></span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a057a1ce83f97534fad8b31f57ac3ad8e">~sample_op</a>()</div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  {</div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keywordflow">if</span> (<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>)</div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-><a class="code" href="classbeast_1_1io__latency__probe.html#a7f82fe723caebead49ca8bdf479ebc22">release</a>();</div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  }</div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  </div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a2f11d5cd03e7e1e4fe9900fe1c8abb47"> 202</a></span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a2f11d5cd03e7e1e4fe9900fe1c8abb47">operator()</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="keyword"> </span>{</div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordflow">if</span> (!<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>)</div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordflow">return</span>;</div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keyword">typename</span> Clock::time_point <span class="keyword">const</span> now(Clock::now());</div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keyword">typename</span> Clock::duration <span class="keyword">const</span> elapsed(now - <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a73ae9b05ec95c78daa47c77629a7737e">m_start</a>);</div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  </div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>(elapsed);</div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  </div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  {</div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-><a class="code" href="classbeast_1_1io__latency__probe.html#a29c18ff449978ef74989fce7dc4d8bae">m_mutex</a>);</div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="keywordflow">if</span> (<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-><a class="code" href="classbeast_1_1io__latency__probe.html#afc81df0e2b1263891edacabf50bc9477">m_cancel</a>)</div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">return</span>;</div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  }</div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  </div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordflow">if</span> (<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>)</div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  {</div>
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="comment">// Calculate when we want to sample again, and</span></div>
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="comment">// adjust for the expected latency.</span></div>
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keyword">typename</span> Clock::time_point <span class="keyword">const</span> when(</div>
|
|
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  now + <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-><a class="code" href="classbeast_1_1io__latency__probe.html#a7a23e5981067195890e71bb44b07e0f0">m_period</a> - 2 * elapsed);</div>
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  </div>
|
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordflow">if</span> (when <= now)</div>
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  {</div>
|
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="comment">// The latency is too high to maintain the desired</span></div>
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="comment">// period so don't bother with a timer.</span></div>
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-><a class="code" href="classbeast_1_1io__latency__probe.html#aba1ffe854135963273599b10d1a808f1">m_ios</a>.post(</div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op<Handler></a>(<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>, now, <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>, <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>));</div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  }</div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="keywordflow">else</span></div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  {</div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-><a class="code" href="classbeast_1_1io__latency__probe.html#a36fc1e9d3fa836e6f8913643eed50707">m_timer</a>.expires_from_now(when - now);</div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-><a class="code" href="classbeast_1_1io__latency__probe.html#a36fc1e9d3fa836e6f8913643eed50707">m_timer</a>.async_wait(</div>
|
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op<Handler></a>(<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>, now, <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>, <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>));</div>
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  }</div>
|
|
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  }</div>
|
|
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  }</div>
|
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  </div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="structbeast_1_1io__latency__probe_1_1sample__op.html#abe82274c277a4317ef272e4fb2873277"> 243</a></span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#abe82274c277a4317ef272e4fb2873277">operator()</a>(boost::system::error_code <span class="keyword">const</span>& ec)</div>
|
|
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  {</div>
|
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordflow">if</span> (!<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>)</div>
|
|
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <span class="keywordflow">return</span>;</div>
|
|
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keyword">typename</span> Clock::time_point <span class="keyword">const</span> now(Clock::now());</div>
|
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>-><a class="code" href="classbeast_1_1io__latency__probe.html#aba1ffe854135963273599b10d1a808f1">m_ios</a>.post(</div>
|
|
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html">sample_op<Handler></a>(<a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a79de04ebd228ee46d67263e9198c9d70">m_handler</a>, now, <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#ae4182ef751650c53c7335bdb0637d79d">m_repeat</a>, <a class="code" href="structbeast_1_1io__latency__probe_1_1sample__op.html#a74ef18fb1ad3ca0f3e82325355cb19ac">m_probe</a>));</div>
|
|
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  }</div>
|
|
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  };</div>
|
|
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> };</div>
|
|
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  </div>
|
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span> } <span class="comment">// namespace beast</span></div>
|
|
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  </div>
|
|
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="preprocessor">#endif</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<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#l00195">io_latency_probe.h:195</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< std::chrono::steady_clock >::time_point</a></div><div class="ttdeci">typename std::chrono::steady_clock ::time_point time_point</div><div class="ttdef"><b>Definition:</b> <a href="io__latency__probe_8h_source.html#l00038">io_latency_probe.h:38</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#l00202">io_latency_probe.h:202</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#l00160">io_latency_probe.h:160</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< std::chrono::steady_clock >::duration</a></div><div class="ttdeci">typename std::chrono::steady_clock ::duration duration</div><div class="ttdef"><b>Definition:</b> <a href="io__latency__probe_8h_source.html#l00037">io_latency_probe.h:37</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#l00163">io_latency_probe.h:163</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#l00161">io_latency_probe.h:161</a></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 class="ttdoc">STL class.</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 class="ttdoc">STL class.</div></div>
|
|
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_af112ed904aa00860d062d2900e199378"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#af112ed904aa00860d062d2900e199378">beast::io_latency_probe::get_io_service</a></div><div class="ttdeci">boost::asio::io_service & get_io_service()</div><div class="ttdoc">Return the io_service associated with the latency probe.</div><div class="ttdef"><b>Definition:</b> <a href="io__latency__probe_8h_source.html#l00067">io_latency_probe.h:67</a></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 &&from) noexcept</div><div class="ttdef"><b>Definition:</b> <a href="io__latency__probe_8h_source.html#l00179">io_latency_probe.h:179</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_ad96645a67b356dae82ecd4d2d0851b20"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#ad96645a67b356dae82ecd4d2d0851b20">beast::io_latency_probe::get_io_service</a></div><div class="ttdeci">boost::asio::io_service const & get_io_service() const</div><div class="ttdef"><b>Definition:</b> <a href="io__latency__probe_8h_source.html#l00073">io_latency_probe.h:73</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_aba1ffe854135963273599b10d1a808f1"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#aba1ffe854135963273599b10d1a808f1">beast::io_latency_probe::m_ios</a></div><div class="ttdeci">boost::asio::io_service & m_ios</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_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#l00041">io_latency_probe.h:41</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="aclassbeast_1_1io__latency__probe_html_a7a23e5981067195890e71bb44b07e0f0"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#a7a23e5981067195890e71bb44b07e0f0">beast::io_latency_probe::m_period</a></div><div class="ttdeci">const duration m_period</div><div class="ttdef"><b>Definition:</b> <a href="io__latency__probe_8h_source.html#l00043">io_latency_probe.h:43</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#l00046">io_latency_probe.h:46</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="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#l00150">io_latency_probe.h:150</a></div></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="aunique_lock_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/unique_lock.html">std::unique_lock</a></div><div class="ttdoc">STL class.</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 &&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#l00119">io_latency_probe.h:119</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< decltype(m_mutex)> &lock, bool wait)</div><div class="ttdef"><b>Definition:</b> <a href="io__latency__probe_8h_source.html#l00130">io_latency_probe.h:130</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 &&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#l00104">io_latency_probe.h:104</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 class="ttdoc">STL class.</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 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_service queue.</div><div class="ttdef"><b>Definition:</b> <a href="io__latency__probe_8h_source.html#l00034">io_latency_probe.h:34</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 &)=delete</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#l00040">io_latency_probe.h:40</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#l00162">io_latency_probe.h:162</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#l00084">io_latency_probe.h:84</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 &ec)</div><div class="ttdef"><b>Definition:</b> <a href="io__latency__probe_8h_source.html#l00243">io_latency_probe.h:243</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1io__latency__probe_html_afdfc98452171bf713bc0e9dc177a9922"><div class="ttname"><a href="classbeast_1_1io__latency__probe.html#afdfc98452171bf713bc0e9dc177a9922">beast::io_latency_probe::io_latency_probe</a></div><div class="ttdeci">io_latency_probe(duration const &period, boost::asio::io_service &ios)</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_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#l00058">io_latency_probe.h:58</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 &handler, time_point const &start, bool repeat, io_latency_probe *probe)</div><div class="ttdef"><b>Definition:</b> <a href="io__latency__probe_8h_source.html#l00165">io_latency_probe.h:165</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< std::chrono::steady_clock > m_timer</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="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="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#l00143">io_latency_probe.h:143</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#l00091">io_latency_probe.h:91</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="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#l00158">io_latency_probe.h:158</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="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="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#l00042">io_latency_probe.h:42</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#l00585">base_uint.h:585</a></div></div>
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|