Files
rippled/classbeast_1_1test_1_1enable__yield__to.html
2025-11-04 00:36:48 -08:00

524 lines
28 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: beast::test::enable_yield_to Class Reference</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>
<!-- 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="namespacebeast.html">beast</a></li><li class="navelem"><a class="el" href="namespacebeast_1_1test.html">test</a></li><li class="navelem"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html">enable_yield_to</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classbeast_1_1test_1_1enable__yield__to-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">beast::test::enable_yield_to Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Mix-in to support tests using asio coroutines.
<a href="classbeast_1_1test_1_1enable__yield__to.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="yield__to_8h_source.html">yield_to.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for beast::test::enable_yield_to:</div>
<div class="dyncontent">
<div class="center"><img src="classbeast_1_1test_1_1enable__yield__to__inherit__graph.png" border="0" usemap="#abeast_1_1test_1_1enable__yield__to_inherit__map" alt="Inheritance graph"/></div>
<map name="abeast_1_1test_1_1enable__yield__to_inherit__map" id="abeast_1_1test_1_1enable__yield__to_inherit__map">
<area shape="rect" title="Mix&#45;in to support tests using asio coroutines." alt="" coords="123,5,266,45"/>
<area shape="rect" href="classio__latency__probe__test.html" title=" " alt="" coords="5,93,171,119"/>
<area shape="poly" title=" " alt="" coords="159,56,106,95,102,91,156,51"/>
<area shape="rect" href="classripple_1_1test_1_1ServerStatus__test.html" title=" " alt="" coords="195,93,410,119"/>
<area shape="poly" title=" " alt="" coords="233,51,288,91,285,95,230,56"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for beast::test::enable_yield_to:</div>
<div class="dyncontent">
<div class="center"><img src="classbeast_1_1test_1_1enable__yield__to__coll__graph.png" border="0" usemap="#abeast_1_1test_1_1enable__yield__to_coll__map" alt="Collaboration graph"/></div>
<map name="abeast_1_1test_1_1enable__yield__to_coll__map" id="abeast_1_1test_1_1enable__yield__to_coll__map">
<area shape="rect" title="Mix&#45;in to support tests using asio coroutines." alt="" coords="272,181,415,221"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="5,93,196,119"/>
<area shape="poly" title=" " alt="" coords="144,121,232,155,295,179,293,184,230,160,142,126"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/thread/thread.html" title=" " alt="" coords="55,5,147,31"/>
<area shape="poly" title=" " alt="" coords="103,45,103,93,98,93,98,45"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/thread/mutex.html" title=" " alt="" coords="220,93,312,119"/>
<area shape="poly" title=" " alt="" coords="286,127,330,179,326,183,282,131"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/thread/condition_variable.html" title=" " alt="" coords="337,93,507,119"/>
<area shape="poly" title=" " alt="" coords="406,131,361,183,357,179,401,127"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/size_t.html" title=" " alt="" coords="531,93,619,119"/>
<area shape="poly" title=" " alt="" coords="535,126,391,184,389,179,533,121"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a431255178ff3bda7a31296d830d5c504" id="r_a431255178ff3bda7a31296d830d5c504"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#a431255178ff3bda7a31296d830d5c504">yield_context</a> = boost::asio::yield_context</td></tr>
<tr class="memdesc:a431255178ff3bda7a31296d830d5c504"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type of yield context passed to functions. <br /></td></tr>
<tr class="separator:a431255178ff3bda7a31296d830d5c504"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a28026f7d95dd5784e15b6985953f6912" id="r_a28026f7d95dd5784e15b6985953f6912"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#a28026f7d95dd5784e15b6985953f6912">enable_yield_to</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> concurrency=1)</td></tr>
<tr class="separator:a28026f7d95dd5784e15b6985953f6912"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaabb0659d5957fcafde65bc87870dd57" id="r_aaabb0659d5957fcafde65bc87870dd57"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#aaabb0659d5957fcafde65bc87870dd57">~enable_yield_to</a> ()</td></tr>
<tr class="separator:aaabb0659d5957fcafde65bc87870dd57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a240c1cf70fb6261937e75b45fee0d1a8" id="r_a240c1cf70fb6261937e75b45fee0d1a8"><td class="memItemLeft" align="right" valign="top">boost::asio::io_context &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#a240c1cf70fb6261937e75b45fee0d1a8">get_io_context</a> ()</td></tr>
<tr class="memdesc:a240c1cf70fb6261937e75b45fee0d1a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the <code>io_context</code> associated with the object. <br /></td></tr>
<tr class="separator:a240c1cf70fb6261937e75b45fee0d1a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a611cd725aff174c8578d112a122fe419" id="r_a611cd725aff174c8578d112a122fe419"><td class="memTemplParams" colspan="2">template&lt;class F0 , class... FN&gt; </td></tr>
<tr class="memitem:a611cd725aff174c8578d112a122fe419"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#a611cd725aff174c8578d112a122fe419">yield_to</a> (F0 &amp;&amp;f0, FN &amp;&amp;... fn)</td></tr>
<tr class="memdesc:a611cd725aff174c8578d112a122fe419"><td class="mdescLeft">&#160;</td><td class="mdescRight">Run one or more functions, each in a coroutine. <br /></td></tr>
<tr class="separator:a611cd725aff174c8578d112a122fe419"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:ab78916dc37b3ac29c51a2f6db6c8dcc3" id="r_ab78916dc37b3ac29c51a2f6db6c8dcc3"><td class="memItemLeft" align="right" valign="top">boost::asio::io_context&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#ab78916dc37b3ac29c51a2f6db6c8dcc3">ios_</a></td></tr>
<tr class="separator:ab78916dc37b3ac29c51a2f6db6c8dcc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-methods" name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:ac043a57142d6c9afd9b608c732de6992" id="r_ac043a57142d6c9afd9b608c732de6992"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#ac043a57142d6c9afd9b608c732de6992">spawn</a> ()</td></tr>
<tr class="separator:ac043a57142d6c9afd9b608c732de6992"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5e5e8c703a37a75b53d23490d28c741" id="r_ae5e5e8c703a37a75b53d23490d28c741"><td class="memTemplParams" colspan="2">template&lt;class F0 , class... FN&gt; </td></tr>
<tr class="memitem:ae5e5e8c703a37a75b53d23490d28c741"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#ae5e5e8c703a37a75b53d23490d28c741">spawn</a> (F0 &amp;&amp;f, FN &amp;&amp;... fn)</td></tr>
<tr class="separator:ae5e5e8c703a37a75b53d23490d28c741"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:af042834c1812ab7365316ae76030b9ec" id="r_af042834c1812ab7365316ae76030b9ec"><td class="memItemLeft" align="right" valign="top">boost::optional&lt; boost::asio::executor_work_guard&lt; boost::asio::io_context::executor_type &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#af042834c1812ab7365316ae76030b9ec">work_</a></td></tr>
<tr class="separator:af042834c1812ab7365316ae76030b9ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca4940910f75e655a6d47d8363496fbc" id="r_aca4940910f75e655a6d47d8363496fbc"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/thread/thread.html">std::thread</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#aca4940910f75e655a6d47d8363496fbc">threads_</a></td></tr>
<tr class="separator:aca4940910f75e655a6d47d8363496fbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f6b147fb7df18f9344cfd33b68305ee" id="r_a3f6b147fb7df18f9344cfd33b68305ee"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#a3f6b147fb7df18f9344cfd33b68305ee">m_</a></td></tr>
<tr class="separator:a3f6b147fb7df18f9344cfd33b68305ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52f1f5d44106a2a01bd690cf5791542f" id="r_a52f1f5d44106a2a01bd690cf5791542f"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable.html">std::condition_variable</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#a52f1f5d44106a2a01bd690cf5791542f">cv_</a></td></tr>
<tr class="separator:a52f1f5d44106a2a01bd690cf5791542f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f3d805b9b02be4d295ee8e66c21a47e" id="r_a2f3d805b9b02be4d295ee8e66c21a47e"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#a2f3d805b9b02be4d295ee8e66c21a47e">running_</a> = 0</td></tr>
<tr class="separator:a2f3d805b9b02be4d295ee8e66c21a47e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Mix-in to support tests using asio coroutines. </p>
<p>Derive from this class and use yield_to to launch test functions inside coroutines. This is handy for testing asynchronous asio code. </p>
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00028">28</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a431255178ff3bda7a31296d830d5c504" name="a431255178ff3bda7a31296d830d5c504"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a431255178ff3bda7a31296d830d5c504">&#9670;&#160;</a></span>yield_context</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classbeast_1_1test_1_1enable__yield__to.html#a431255178ff3bda7a31296d830d5c504">beast::test::enable_yield_to::yield_context</a> = boost::asio::yield_context</td>
</tr>
</table>
</div><div class="memdoc">
<p>The type of yield context passed to functions. </p>
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00044">44</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a28026f7d95dd5784e15b6985953f6912" name="a28026f7d95dd5784e15b6985953f6912"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28026f7d95dd5784e15b6985953f6912">&#9670;&#160;</a></span>enable_yield_to()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">beast::test::enable_yield_to::enable_yield_to </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>&#160;</td>
<td class="paramname"><em>concurrency</em> = <code>1</code></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00046">46</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div>
</div>
<a id="aaabb0659d5957fcafde65bc87870dd57" name="aaabb0659d5957fcafde65bc87870dd57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaabb0659d5957fcafde65bc87870dd57">&#9670;&#160;</a></span>~enable_yield_to()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">beast::test::enable_yield_to::~enable_yield_to </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00054">54</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a240c1cf70fb6261937e75b45fee0d1a8" name="a240c1cf70fb6261937e75b45fee0d1a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a240c1cf70fb6261937e75b45fee0d1a8">&#9670;&#160;</a></span>get_io_context()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">boost::asio::io_context &amp; beast::test::enable_yield_to::get_io_context </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the <code>io_context</code> associated with the object. </p>
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00063">63</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div>
</div>
<a id="a611cd725aff174c8578d112a122fe419" name="a611cd725aff174c8578d112a122fe419"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a611cd725aff174c8578d112a122fe419">&#9670;&#160;</a></span>yield_to()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class F0 , class... FN&gt; </div>
<table class="memname">
<tr>
<td class="memname">void beast::test::enable_yield_to::yield_to </td>
<td>(</td>
<td class="paramtype">F0 &amp;&amp;&#160;</td>
<td class="paramname"><em>f0</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">FN &amp;&amp;...&#160;</td>
<td class="paramname"><em>fn</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Run one or more functions, each in a coroutine. </p>
<p>This call will block until all coroutines terminate.</p>
<p>Each functions should have this signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> f(<a class="code hl_typedef" href="classbeast_1_1test_1_1enable__yield__to.html#a431255178ff3bda7a31296d830d5c504">yield_context</a>);</div>
<div class="ttc" id="aclassbeast_1_1test_1_1enable__yield__to_html_a431255178ff3bda7a31296d830d5c504"><div class="ttname"><a href="classbeast_1_1test_1_1enable__yield__to.html#a431255178ff3bda7a31296d830d5c504">beast::test::enable_yield_to::yield_context</a></div><div class="ttdeci">boost::asio::yield_context yield_context</div><div class="ttdoc">The type of yield context passed to functions.</div><div class="ttdef"><b>Definition</b> <a href="yield__to_8h_source.html#l00044">yield_to.h:44</a></div></div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">fn...</td><td>One or more functions to invoke. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00102">102</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div>
</div>
<a id="ac043a57142d6c9afd9b608c732de6992" name="ac043a57142d6c9afd9b608c732de6992"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac043a57142d6c9afd9b608c732de6992">&#9670;&#160;</a></span>spawn() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void beast::test::enable_yield_to::spawn </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00091">91</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div>
</div>
<a id="ae5e5e8c703a37a75b53d23490d28c741" name="ae5e5e8c703a37a75b53d23490d28c741"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5e5e8c703a37a75b53d23490d28c741">&#9670;&#160;</a></span>spawn() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class F0 , class... FN&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void beast::test::enable_yield_to::spawn </td>
<td>(</td>
<td class="paramtype">F0 &amp;&amp;&#160;</td>
<td class="paramname"><em>f</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">FN &amp;&amp;...&#160;</td>
<td class="paramname"><em>fn</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00112">112</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ab78916dc37b3ac29c51a2f6db6c8dcc3" name="ab78916dc37b3ac29c51a2f6db6c8dcc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab78916dc37b3ac29c51a2f6db6c8dcc3">&#9670;&#160;</a></span>ios_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">boost::asio::io_context beast::test::enable_yield_to::ios_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00031">31</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div>
</div>
<a id="af042834c1812ab7365316ae76030b9ec" name="af042834c1812ab7365316ae76030b9ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af042834c1812ab7365316ae76030b9ec">&#9670;&#160;</a></span>work_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">boost::optional&lt;boost::asio::executor_work_guard&lt; boost::asio::io_context::executor_type&gt; &gt; beast::test::enable_yield_to::work_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00036">36</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div>
</div>
<a id="aca4940910f75e655a6d47d8363496fbc" name="aca4940910f75e655a6d47d8363496fbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca4940910f75e655a6d47d8363496fbc">&#9670;&#160;</a></span>threads_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="elRef" href="http://en.cppreference.com/w/cpp/thread/thread.html">std::thread</a>&gt; beast::test::enable_yield_to::threads_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00037">37</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div>
</div>
<a id="a3f6b147fb7df18f9344cfd33b68305ee" name="a3f6b147fb7df18f9344cfd33b68305ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f6b147fb7df18f9344cfd33b68305ee">&#9670;&#160;</a></span>m_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> beast::test::enable_yield_to::m_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00038">38</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div>
</div>
<a id="a52f1f5d44106a2a01bd690cf5791542f" name="a52f1f5d44106a2a01bd690cf5791542f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52f1f5d44106a2a01bd690cf5791542f">&#9670;&#160;</a></span>cv_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/thread/condition_variable.html">std::condition_variable</a> beast::test::enable_yield_to::cv_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00039">39</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div>
</div>
<a id="a2f3d805b9b02be4d295ee8e66c21a47e" name="a2f3d805b9b02be4d295ee8e66c21a47e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f3d805b9b02be4d295ee8e66c21a47e">&#9670;&#160;</a></span>running_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> beast::test::enable_yield_to::running_ = 0</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="yield__to_8h_source.html#l00040">40</a> of file <a class="el" href="yield__to_8h_source.html">yield_to.h</a>.</p>
</div>
</div>
</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>