blob: 0ffa1f7c981f0fee1bc8d6cfa1820bc960a483d6 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.5"/>
<title>Apache Mesos: 3rdparty/libprocess/include/process/async.hpp File 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="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 style="padding-left: 0.5em;">
<div id="projectname">Apache Mesos
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_043a76de98701f9bddf61b5e98f305ff.html">libprocess</a></li><li class="navelem"><a class="el" href="dir_eac18f7a64f6f8afbd1493ef4e09abdb.html">include</a></li><li class="navelem"><a class="el" href="dir_1894286df79cf582d947dbc4268b06cf.html">process</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">async.hpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;type_traits&gt;</code><br/>
<code>#include &lt;<a class="el" href="dispatch_8hpp_source.html">process/dispatch.hpp</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="future_8hpp_source.html">process/future.hpp</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="id_8hpp_source.html">process/id.hpp</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="3rdparty_2libprocess_2include_2process_2pid_8hpp_source.html">process/pid.hpp</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="libprocess_2include_2process_2process_8hpp_source.html">process/process.hpp</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="lambda_8hpp_source.html">stout/lambda.hpp</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="nothing_8hpp_source.html">stout/nothing.hpp</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="preprocessor_8hpp_source.html">stout/preprocessor.hpp</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="result__of_8hpp_source.html">stout/result_of.hpp</a>&gt;</code><br/>
</div>
<p><a href="async_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classprocess_1_1AsyncExecutor.html">process::AsyncExecutor</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceprocess"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess.html">process</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a659a0f3373b1b8ed3e348bc4332657e2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="async_8hpp.html#a659a0f3373b1b8ed3e348bc4332657e2">TEMPLATE</a>(Z, N, DATA)</td></tr>
<tr class="separator:a659a0f3373b1b8ed3e348bc4332657e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a659a0f3373b1b8ed3e348bc4332657e2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="async_8hpp.html#a659a0f3373b1b8ed3e348bc4332657e2">TEMPLATE</a>(Z, N, DATA)</td></tr>
<tr class="separator:a659a0f3373b1b8ed3e348bc4332657e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a659a0f3373b1b8ed3e348bc4332657e2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="async_8hpp.html#a659a0f3373b1b8ed3e348bc4332657e2">TEMPLATE</a>(Z, N, DATA)</td></tr>
<tr class="separator:a659a0f3373b1b8ed3e348bc4332657e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a659a0f3373b1b8ed3e348bc4332657e2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="async_8hpp.html#a659a0f3373b1b8ed3e348bc4332657e2">TEMPLATE</a>(Z, N, DATA)</td></tr>
<tr class="separator:a659a0f3373b1b8ed3e348bc4332657e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a659a0f3373b1b8ed3e348bc4332657e2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="async_8hpp.html#a659a0f3373b1b8ed3e348bc4332657e2">TEMPLATE</a>(Z, N, DATA)</td></tr>
<tr class="separator:a659a0f3373b1b8ed3e348bc4332657e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a92b69ab22f734498cfe8cf6edd92fd2a"><td class="memTemplParams" colspan="2">template&lt;typename F &gt; </td></tr>
<tr class="memitem:a92b69ab22f734498cfe8cf6edd92fd2a"><td class="memTemplItemLeft" align="right" valign="top">Future&lt; typename result_of&lt; F()&gt;<br class="typebreak"/>
::type &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceprocess.html#a92b69ab22f734498cfe8cf6edd92fd2a">process::async</a> (const F &amp;f, typename std::enable_if&lt;!std::is_void&lt; typename result_of&lt; F()&gt;::type &gt;::value &gt;::type *=nullptr)</td></tr>
<tr class="separator:a92b69ab22f734498cfe8cf6edd92fd2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a7ae46e9f2d15e3fcd2bff8c87204c9"><td class="memTemplParams" colspan="2">template&lt;typename F &gt; </td></tr>
<tr class="memitem:a9a7ae46e9f2d15e3fcd2bff8c87204c9"><td class="memTemplItemLeft" align="right" valign="top">Future&lt; <a class="el" href="structNothing.html">Nothing</a> &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceprocess.html#a9a7ae46e9f2d15e3fcd2bff8c87204c9">process::async</a> (const F &amp;f, typename std::enable_if&lt; std::is_void&lt; typename result_of&lt; F()&gt;::type &gt;::value &gt;::type *=nullptr)</td></tr>
<tr class="separator:a9a7ae46e9f2d15e3fcd2bff8c87204c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefdb2dafcc91a996be425476adf2b4e0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess.html#aefdb2dafcc91a996be425476adf2b4e0">process::REPEAT_FROM_TO</a> (1, 12, <a class="el" href="subcommand_8hpp.html#a659a0f3373b1b8ed3e348bc4332657e2">TEMPLATE</a>, _) class AsyncExecutorProcess</td></tr>
<tr class="separator:aefdb2dafcc91a996be425476adf2b4e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a659a0f3373b1b8ed3e348bc4332657e2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define TEMPLATE</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">Z, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">N, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">DATA&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">template</span> &lt;<span class="keyword">typename</span> F, ENUM_PARAMS(N, <span class="keyword">typename</span> A)&gt; <a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">\</a></div>
<div class="line"><a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba"> Future&lt;typename result_of&lt;F(ENUM_PARAMS(N, A))&gt;::type</a>&gt; <a class="code" href="namespaceprocess.html#a92b69ab22f734498cfe8cf6edd92fd2a">async</a>( \</div>
<div class="line"> <span class="keyword">const</span> F&amp; <a class="code" href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, \</div>
<div class="line"> <a class="code" href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a>(N, A, a), \</div>
<div class="line"> <span class="keyword">typename</span> std::enable_if&lt;!std::is_void&lt;<span class="keyword">typename</span> result_of&lt;F(<a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, A))&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>&gt;::value&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>* = <span class="keyword">nullptr</span>); <span class="comment">/* NOLINT(whitespace/line_length) */</span> \</div>
<div class="line"> \</div>
<div class="line"> \</div>
<div class="line"> template &lt;typename F, ENUM_PARAMS(N, typename A)&gt; \</div>
<div class="line"> Future&lt;Nothing&gt; <a class="code" href="namespaceprocess.html#a92b69ab22f734498cfe8cf6edd92fd2a">async</a>( \</div>
<div class="line"> <span class="keyword">const</span> F&amp; f, \</div>
<div class="line"> <a class="code" href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a>(N, A, a), \</div>
<div class="line"> <span class="keyword">typename</span> std::enable_if&lt;std::is_void&lt;<span class="keyword">typename</span> result_of&lt;F(<a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, A))&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>&gt;::value&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>* = <span class="keyword">nullptr</span>);</div>
<div class="ttc" id="namespaceprocess_html_a62d5333e8ec1817c249cf83e15d568b4"><div class="ttname"><a href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">process::f</a></div><div class="ttdeci">F &amp;&amp; f</div><div class="ttdef"><b>Definition:</b> defer.hpp:239</div></div>
<div class="ttc" id="namespaceprocess_html_a92b69ab22f734498cfe8cf6edd92fd2a"><div class="ttname"><a href="namespaceprocess.html#a92b69ab22f734498cfe8cf6edd92fd2a">process::async</a></div><div class="ttdeci">Future&lt; typename result_of&lt; F()&gt;::type &gt; async(const F &amp;f, typename std::enable_if&lt;!std::is_void&lt; typename result_of&lt; F()&gt;::type &gt;::value &gt;::type *=nullptr)</div><div class="ttdef"><b>Definition:</b> async.hpp:238</div></div>
<div class="ttc" id="preprocessor_8hpp_html_a136ead90127dc77a956b32b74056d6b6"><div class="ttname"><a href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a></div><div class="ttdeci">#define ENUM_BINARY_PARAMS</div><div class="ttdef"><b>Definition:</b> preprocessor.hpp:36</div></div>
<div class="ttc" id="namespacemesos_1_1internal_1_1fs_html_a2343e2642db514496ba8380776487fba"><div class="ttname"><a href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">mesos::internal::fs::type</a></div><div class="ttdeci">Try&lt; uint32_t &gt; type(const std::string &amp;path)</div></div>
<div class="ttc" id="preprocessor_8hpp_html_a40870bee0160b00ad1caa741a2a2ef95"><div class="ttname"><a href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a></div><div class="ttdeci">#define ENUM_PARAMS</div><div class="ttdef"><b>Definition:</b> preprocessor.hpp:35</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a659a0f3373b1b8ed3e348bc4332657e2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define TEMPLATE</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">Z, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">N, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">DATA&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">template</span> &lt; \</div>
<div class="line"> typename F, <a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">\</a></div>
<div class="line"><a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95"> ENUM_PARAMS</a>(N, <span class="keyword">typename</span> A), \</div>
<div class="line"> typename std::enable_if&lt; \</div>
<div class="line"> !std::is_void&lt; \</div>
<div class="line"> typename <a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">result_of&lt;F(ENUM_PARAMS(N, A))&gt;::type</a>&gt;::value, \</div>
<div class="line"> int&gt;<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a> = 0&gt; \</div>
<div class="line"> typename <a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">result_of&lt;F(ENUM_PARAMS(N, A))&gt;::type</a> <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a1526213546914662d7a58263f68d11bc">execute</a>( \</div>
<div class="line"> <span class="keyword">const</span> F&amp; <a class="code" href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, <a class="code" href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a>(N, A, a)) \</div>
<div class="line"> { <a class="code" href="namespaceprocess.html#a20443908afa3212215166e26065349e5">\</a></div>
<div class="line"><a class="code" href="namespaceprocess.html#a20443908afa3212215166e26065349e5"> terminate</a>(<span class="keyword">self</span>()); <span class="comment">/* Terminate process after function returns. */</span> \</div>
<div class="line"> return <a class="code" href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>(<a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, a)); \</div>
<div class="line"> } \</div>
<div class="line"> \</div>
<div class="line"> template &lt; \</div>
<div class="line"> typename F, <a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">\</a></div>
<div class="line"><a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95"> ENUM_PARAMS</a>(N, <span class="keyword">typename</span> A), \</div>
<div class="line"> typename std::enable_if&lt; \</div>
<div class="line"> std::is_void&lt; \</div>
<div class="line"> typename <a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">result_of&lt;F(ENUM_PARAMS(N, A))&gt;::type</a>&gt;::value, \</div>
<div class="line"> int&gt;<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">::type</a> = 0&gt; \</div>
<div class="line"> Nothing <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a1526213546914662d7a58263f68d11bc">execute</a>( \</div>
<div class="line"> <span class="keyword">const</span> F&amp; f, <a class="code" href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a>(N, A, a)) \</div>
<div class="line"> { <a class="code" href="namespaceprocess.html#a20443908afa3212215166e26065349e5">\</a></div>
<div class="line"><a class="code" href="namespaceprocess.html#a20443908afa3212215166e26065349e5"> terminate</a>(<span class="keyword">self</span>()); <span class="comment">/* Terminate process after function returns. */</span> <a class="code" href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">\</a></div>
<div class="line"><a class="code" href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4"> f</a>(<a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, a)); \</div>
<div class="line"> return <a class="code" href="structNothing.html">Nothing</a>(); \</div>
<div class="line"> }</div>
<div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div>
<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_a1526213546914662d7a58263f68d11bc"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#a1526213546914662d7a58263f68d11bc">mesos::internal::tests::execute</a></div><div class="ttdeci">void execute(const std::string &amp;script)</div></div>
<div class="ttc" id="namespaceprocess_html_a62d5333e8ec1817c249cf83e15d568b4"><div class="ttname"><a href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">process::f</a></div><div class="ttdeci">F &amp;&amp; f</div><div class="ttdef"><b>Definition:</b> defer.hpp:239</div></div>
<div class="ttc" id="namespaceprocess_html_a20443908afa3212215166e26065349e5"><div class="ttname"><a href="namespaceprocess.html#a20443908afa3212215166e26065349e5">process::terminate</a></div><div class="ttdeci">void terminate(const UPID &amp;pid, bool inject=true)</div><div class="ttdoc">Sends a TerminateEvent to the given process. </div></div>
<div class="ttc" id="preprocessor_8hpp_html_a136ead90127dc77a956b32b74056d6b6"><div class="ttname"><a href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a></div><div class="ttdeci">#define ENUM_BINARY_PARAMS</div><div class="ttdef"><b>Definition:</b> preprocessor.hpp:36</div></div>
<div class="ttc" id="namespacemesos_1_1internal_1_1fs_html_a2343e2642db514496ba8380776487fba"><div class="ttname"><a href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">mesos::internal::fs::type</a></div><div class="ttdeci">Try&lt; uint32_t &gt; type(const std::string &amp;path)</div></div>
<div class="ttc" id="preprocessor_8hpp_html_a40870bee0160b00ad1caa741a2a2ef95"><div class="ttname"><a href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a></div><div class="ttdeci">#define ENUM_PARAMS</div><div class="ttdef"><b>Definition:</b> preprocessor.hpp:35</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a659a0f3373b1b8ed3e348bc4332657e2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define TEMPLATE</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">Z, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">N, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">DATA&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">template</span> &lt;<span class="keyword">typename</span> F, ENUM_PARAMS(N, <span class="keyword">typename</span> A)&gt; \</div>
<div class="line"> friend <a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">Future&lt;typename result_of&lt;F(ENUM_PARAMS(N, A))&gt;::type</a>&gt; <a class="code" href="namespaceprocess.html#a92b69ab22f734498cfe8cf6edd92fd2a">async</a>( \</div>
<div class="line"> <span class="keyword">const</span> F&amp; <a class="code" href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, \</div>
<div class="line"> <a class="code" href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a>(N, A, a), \</div>
<div class="line"> <span class="keyword">typename</span> std::enable_if&lt;!std::is_void&lt;<span class="keyword">typename</span> result_of&lt;F(<a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, A))&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>&gt;::value&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>*); <span class="comment">/* NOLINT(whitespace/line_length) */</span> \</div>
<div class="line"> \</div>
<div class="line"> template &lt;typename F, ENUM_PARAMS(N, typename A)&gt; \</div>
<div class="line"> friend Future&lt;Nothing&gt; <a class="code" href="namespaceprocess.html#a92b69ab22f734498cfe8cf6edd92fd2a">async</a>( \</div>
<div class="line"> <span class="keyword">const</span> F&amp; f, \</div>
<div class="line"> <a class="code" href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a>(N, A, a), \</div>
<div class="line"> <span class="keyword">typename</span> std::enable_if&lt;std::is_void&lt;<span class="keyword">typename</span> result_of&lt;F(<a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, A))&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>&gt;::value&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>*);</div>
<div class="ttc" id="namespaceprocess_html_a62d5333e8ec1817c249cf83e15d568b4"><div class="ttname"><a href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">process::f</a></div><div class="ttdeci">F &amp;&amp; f</div><div class="ttdef"><b>Definition:</b> defer.hpp:239</div></div>
<div class="ttc" id="namespaceprocess_html_a92b69ab22f734498cfe8cf6edd92fd2a"><div class="ttname"><a href="namespaceprocess.html#a92b69ab22f734498cfe8cf6edd92fd2a">process::async</a></div><div class="ttdeci">Future&lt; typename result_of&lt; F()&gt;::type &gt; async(const F &amp;f, typename std::enable_if&lt;!std::is_void&lt; typename result_of&lt; F()&gt;::type &gt;::value &gt;::type *=nullptr)</div><div class="ttdef"><b>Definition:</b> async.hpp:238</div></div>
<div class="ttc" id="preprocessor_8hpp_html_a136ead90127dc77a956b32b74056d6b6"><div class="ttname"><a href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a></div><div class="ttdeci">#define ENUM_BINARY_PARAMS</div><div class="ttdef"><b>Definition:</b> preprocessor.hpp:36</div></div>
<div class="ttc" id="namespacemesos_1_1internal_1_1fs_html_a2343e2642db514496ba8380776487fba"><div class="ttname"><a href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">mesos::internal::fs::type</a></div><div class="ttdeci">Try&lt; uint32_t &gt; type(const std::string &amp;path)</div></div>
<div class="ttc" id="preprocessor_8hpp_html_a40870bee0160b00ad1caa741a2a2ef95"><div class="ttname"><a href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a></div><div class="ttdeci">#define ENUM_PARAMS</div><div class="ttdef"><b>Definition:</b> preprocessor.hpp:35</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a659a0f3373b1b8ed3e348bc4332657e2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define TEMPLATE</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">Z, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">N, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">DATA&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">template</span> &lt;<span class="keyword">typename</span> F, ENUM_PARAMS(N, <span class="keyword">typename</span> A)&gt; <a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">\</a></div>
<div class="line"><a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba"> Future&lt;typename result_of&lt;F(ENUM_PARAMS(N, A))&gt;::type</a>&gt; <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a1526213546914662d7a58263f68d11bc">execute</a>( \</div>
<div class="line"> <span class="keyword">const</span> F&amp; <a class="code" href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, \</div>
<div class="line"> <a class="code" href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a>(N, A, a), \</div>
<div class="line"> <span class="keyword">typename</span> std::enable_if&lt;!std::is_void&lt;<span class="keyword">typename</span> result_of&lt;F(<a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, A))&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>&gt;::value&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>* = <span class="keyword">nullptr</span>) <span class="comment">/* NOLINT(whitespace/line_length) */</span> \</div>
<div class="line"> { \</div>
<div class="line"> <span class="comment">/* Need to disambiguate overloaded method. */</span> \</div>
<div class="line"> typename <a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">result_of&lt;F(ENUM_PARAMS(N, A))&gt;::type</a>(AsyncExecutorProcess::*method)(<span class="keyword">const</span> F&amp;, <a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, A)) = <span class="comment">/* NOLINT(whitespace/line_length) */</span> \</div>
<div class="line"> &amp;<a class="code" href="namespacemesos_1_1internal_1_1tests.html#a1526213546914662d7a58263f68d11bc">AsyncExecutorProcess::execute</a>&lt;F, <a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, A)&gt;; \</div>
<div class="line"> \</div>
<div class="line"> return <a class="code" href="namespaceprocess_1_1internal.html#af41e327161ef61c79f5eb864fc2af03d">dispatch</a>(<a class="code" href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">process</a>, method, f, <a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, a)); \</div>
<div class="line"> } \</div>
<div class="line"> \</div>
<div class="line"> template &lt;typename F, ENUM_PARAMS(N, typename A)&gt; \</div>
<div class="line"> Future&lt;Nothing&gt; <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a1526213546914662d7a58263f68d11bc">execute</a>( \</div>
<div class="line"> <span class="keyword">const</span> F&amp; f, \</div>
<div class="line"> <a class="code" href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a>(N, A, a), \</div>
<div class="line"> <span class="keyword">typename</span> std::enable_if&lt;std::is_void&lt;<span class="keyword">typename</span> result_of&lt;F(<a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, A))&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>&gt;::value&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>* = <span class="keyword">nullptr</span>) <span class="comment">/* NOLINT(whitespace/line_length) */</span> \</div>
<div class="line"> { \</div>
<div class="line"> <span class="comment">/* Need to disambiguate overloaded method. */</span> \</div>
<div class="line"> Nothing(AsyncExecutorProcess::*method)(<span class="keyword">const</span> F&amp;, <a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, A)) = \</div>
<div class="line"> &amp;<a class="code" href="namespacemesos_1_1internal_1_1tests.html#a1526213546914662d7a58263f68d11bc">AsyncExecutorProcess::execute</a>&lt;F, <a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, A)&gt;; \</div>
<div class="line"> \</div>
<div class="line"> return <a class="code" href="namespaceprocess_1_1internal.html#af41e327161ef61c79f5eb864fc2af03d">dispatch</a>(<a class="code" href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">process</a>, method, f, <a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, a)); \</div>
<div class="line"> }</div>
<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_a1526213546914662d7a58263f68d11bc"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#a1526213546914662d7a58263f68d11bc">mesos::internal::tests::execute</a></div><div class="ttdeci">void execute(const std::string &amp;script)</div></div>
<div class="ttc" id="namespaceprocess_html_a62d5333e8ec1817c249cf83e15d568b4"><div class="ttname"><a href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">process::f</a></div><div class="ttdeci">F &amp;&amp; f</div><div class="ttdef"><b>Definition:</b> defer.hpp:239</div></div>
<div class="ttc" id="namespaceprocess_1_1internal_html_af41e327161ef61c79f5eb864fc2af03d"><div class="ttname"><a href="namespaceprocess_1_1internal.html#af41e327161ef61c79f5eb864fc2af03d">process::internal::dispatch</a></div><div class="ttdeci">void dispatch(const UPID &amp;pid, const std::shared_ptr&lt; std::function&lt; void(ProcessBase *)&gt;&gt; &amp;f, const Option&lt; const std::type_info * &gt; &amp;functionType=None())</div></div>
<div class="ttc" id="namespaceos_html_ae19e4161a51b86a1f330f3bf1dc75389"><div class="ttname"><a href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">os::process</a></div><div class="ttdeci">Result&lt; Process &gt; process(pid_t pid)</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:30</div></div>
<div class="ttc" id="preprocessor_8hpp_html_a136ead90127dc77a956b32b74056d6b6"><div class="ttname"><a href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a></div><div class="ttdeci">#define ENUM_BINARY_PARAMS</div><div class="ttdef"><b>Definition:</b> preprocessor.hpp:36</div></div>
<div class="ttc" id="namespacemesos_1_1internal_1_1fs_html_a2343e2642db514496ba8380776487fba"><div class="ttname"><a href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">mesos::internal::fs::type</a></div><div class="ttdeci">Try&lt; uint32_t &gt; type(const std::string &amp;path)</div></div>
<div class="ttc" id="preprocessor_8hpp_html_a40870bee0160b00ad1caa741a2a2ef95"><div class="ttname"><a href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a></div><div class="ttdeci">#define ENUM_PARAMS</div><div class="ttdef"><b>Definition:</b> preprocessor.hpp:35</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a659a0f3373b1b8ed3e348bc4332657e2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define TEMPLATE</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">Z, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">N, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">DATA&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">template</span> &lt;<span class="keyword">typename</span> F, ENUM_PARAMS(N, <span class="keyword">typename</span> A)&gt; <a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">\</a></div>
<div class="line"><a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba"> Future&lt;typename result_of&lt;F(ENUM_PARAMS(N, A))&gt;::type</a>&gt; <a class="code" href="namespaceprocess.html#a92b69ab22f734498cfe8cf6edd92fd2a">async</a>( \</div>
<div class="line"> <span class="keyword">const</span> F&amp; <a class="code" href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">f</a>, \</div>
<div class="line"> <a class="code" href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a>(N, A, a), \</div>
<div class="line"> <span class="keyword">typename</span> std::enable_if&lt;!std::is_void&lt;<span class="keyword">typename</span> result_of&lt;F(<a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, A))&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>&gt;::value&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>*) <span class="comment">/* NOLINT(whitespace/line_length) */</span> \</div>
<div class="line"> { \</div>
<div class="line"> return AsyncExecutor().execute(f, <a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, a)); \</div>
<div class="line"> } \</div>
<div class="line"> \</div>
<div class="line"> template &lt;typename F, ENUM_PARAMS(N, typename A)&gt; \</div>
<div class="line"> Future&lt;Nothing&gt; <a class="code" href="namespaceprocess.html#a92b69ab22f734498cfe8cf6edd92fd2a">async</a>( \</div>
<div class="line"> <span class="keyword">const</span> F&amp; f, \</div>
<div class="line"> <a class="code" href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a>(N, A, a), \</div>
<div class="line"> <span class="keyword">typename</span> std::enable_if&lt;std::is_void&lt;<span class="keyword">typename</span> result_of&lt;F(<a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, A))&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>&gt;::value&gt;::<a class="code" href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">type</a>*) <span class="comment">/* NOLINT(whitespace/line_length) */</span> \</div>
<div class="line"> { \</div>
<div class="line"> return AsyncExecutor().execute(f, <a class="code" href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a>(N, a)); \</div>
<div class="line"> }</div>
<div class="ttc" id="namespaceprocess_html_a62d5333e8ec1817c249cf83e15d568b4"><div class="ttname"><a href="namespaceprocess.html#a62d5333e8ec1817c249cf83e15d568b4">process::f</a></div><div class="ttdeci">F &amp;&amp; f</div><div class="ttdef"><b>Definition:</b> defer.hpp:239</div></div>
<div class="ttc" id="namespaceprocess_html_a92b69ab22f734498cfe8cf6edd92fd2a"><div class="ttname"><a href="namespaceprocess.html#a92b69ab22f734498cfe8cf6edd92fd2a">process::async</a></div><div class="ttdeci">Future&lt; typename result_of&lt; F()&gt;::type &gt; async(const F &amp;f, typename std::enable_if&lt;!std::is_void&lt; typename result_of&lt; F()&gt;::type &gt;::value &gt;::type *=nullptr)</div><div class="ttdef"><b>Definition:</b> async.hpp:238</div></div>
<div class="ttc" id="preprocessor_8hpp_html_a136ead90127dc77a956b32b74056d6b6"><div class="ttname"><a href="preprocessor_8hpp.html#a136ead90127dc77a956b32b74056d6b6">ENUM_BINARY_PARAMS</a></div><div class="ttdeci">#define ENUM_BINARY_PARAMS</div><div class="ttdef"><b>Definition:</b> preprocessor.hpp:36</div></div>
<div class="ttc" id="namespacemesos_1_1internal_1_1fs_html_a2343e2642db514496ba8380776487fba"><div class="ttname"><a href="namespacemesos_1_1internal_1_1fs.html#a2343e2642db514496ba8380776487fba">mesos::internal::fs::type</a></div><div class="ttdeci">Try&lt; uint32_t &gt; type(const std::string &amp;path)</div></div>
<div class="ttc" id="preprocessor_8hpp_html_a40870bee0160b00ad1caa741a2a2ef95"><div class="ttname"><a href="preprocessor_8hpp.html#a40870bee0160b00ad1caa741a2a2ef95">ENUM_PARAMS</a></div><div class="ttdeci">#define ENUM_PARAMS</div><div class="ttdef"><b>Definition:</b> preprocessor.hpp:35</div></div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>