You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

346 lines
22 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.4"/>
  7. <title>tbb::flow::interface7::graph Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <!-- end header part -->
  16. <!-- Generated by Doxygen 1.8.4 -->
  17. <div id="navrow1" class="tabs">
  18. <ul class="tablist">
  19. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  20. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  21. <li><a href="modules.html"><span>Modules</span></a></li>
  22. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  23. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  24. <li><a href="files.html"><span>Files</span></a></li>
  25. </ul>
  26. </div>
  27. <div id="navrow2" class="tabs2">
  28. <ul class="tablist">
  29. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  30. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  31. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  32. </ul>
  33. </div>
  34. <div id="nav-path" class="navpath">
  35. <ul>
  36. <li class="navelem"><a class="el" href="a00222.html">tbb</a></li><li class="navelem"><b>flow</b></li><li class="navelem"><b>interface7</b></li><li class="navelem"><a class="el" href="a00061.html">graph</a></li> </ul>
  37. </div>
  38. </div><!-- top -->
  39. <div class="header">
  40. <div class="summary">
  41. <a href="#nested-classes">Classes</a> &#124;
  42. <a href="#pub-types">Public Types</a> &#124;
  43. <a href="#pub-methods">Public Member Functions</a> &#124;
  44. <a href="#friends">Friends</a> &#124;
  45. <a href="a00313.html">List of all members</a> </div>
  46. <div class="headertitle">
  47. <div class="title">tbb::flow::interface7::graph Class Reference</div> </div>
  48. </div><!--header-->
  49. <div class="contents">
  50. <p>The graph class.
  51. <a href="a00061.html#details">More...</a></p>
  52. <p><code>#include &lt;flow_graph.h&gt;</code></p>
  53. <div class="dynheader">
  54. Inheritance diagram for tbb::flow::interface7::graph:</div>
  55. <div class="dyncontent">
  56. <div class="center">
  57. <img src="a00061.png" usemap="#tbb::flow::interface7::graph_map" alt=""/>
  58. <map id="tbb::flow::interface7::graph_map" name="tbb::flow::interface7::graph_map">
  59. </map>
  60. </div></div>
  61. <table class="memberdecls">
  62. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  63. Public Types</h2></td></tr>
  64. <tr class="memitem:aadf8d25297819e6b7c01e271ba504906"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aadf8d25297819e6b7c01e271ba504906"></a>
  65. typedef <a class="el" href="a00062.html">graph_iterator</a>&lt; <a class="el" href="a00061.html">graph</a>, <br class="typebreak"/>
  66. <a class="el" href="a00063.html">graph_node</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>iterator</b></td></tr>
  67. <tr class="separator:aadf8d25297819e6b7c01e271ba504906"><td class="memSeparator" colspan="2">&#160;</td></tr>
  68. <tr class="memitem:a278ce7d4ece4894554b6706d915e16a4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a278ce7d4ece4894554b6706d915e16a4"></a>
  69. typedef <a class="el" href="a00062.html">graph_iterator</a>&lt; const <br class="typebreak"/>
  70. <a class="el" href="a00061.html">graph</a>, const <a class="el" href="a00063.html">graph_node</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>const_iterator</b></td></tr>
  71. <tr class="separator:a278ce7d4ece4894554b6706d915e16a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  72. </table><table class="memberdecls">
  73. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  74. Public Member Functions</h2></td></tr>
  75. <tr class="memitem:ac274a9006e66ecc75bcd59f784fe1867"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac274a9006e66ecc75bcd59f784fe1867"></a>
  76. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#ac274a9006e66ecc75bcd59f784fe1867">graph</a> ()</td></tr>
  77. <tr class="memdesc:ac274a9006e66ecc75bcd59f784fe1867"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a graph with isolated <a class="el" href="a00138.html">task_group_context</a>. <br/></td></tr>
  78. <tr class="separator:ac274a9006e66ecc75bcd59f784fe1867"><td class="memSeparator" colspan="2">&#160;</td></tr>
  79. <tr class="memitem:a656cee3d0240a3f142a450800e6b17c7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a656cee3d0240a3f142a450800e6b17c7"></a>
  80. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a656cee3d0240a3f142a450800e6b17c7">graph</a> (<a class="el" href="a00138.html">task_group_context</a> &amp;use_this_context)</td></tr>
  81. <tr class="memdesc:a656cee3d0240a3f142a450800e6b17c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a graph with use_this_context as context. <br/></td></tr>
  82. <tr class="separator:a656cee3d0240a3f142a450800e6b17c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  83. <tr class="memitem:a3412df4d4bf0113aed93c958bbb49ec4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a3412df4d4bf0113aed93c958bbb49ec4">~graph</a> ()</td></tr>
  84. <tr class="memdesc:a3412df4d4bf0113aed93c958bbb49ec4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys the graph. <a href="#a3412df4d4bf0113aed93c958bbb49ec4">More...</a><br/></td></tr>
  85. <tr class="separator:a3412df4d4bf0113aed93c958bbb49ec4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  86. <tr class="memitem:a0d13293f3c2d0f2e79e9a93afb0e8fd4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0d13293f3c2d0f2e79e9a93afb0e8fd4"></a>
  87. void&#160;</td><td class="memItemRight" valign="bottom"><b>set_name</b> (const char *name)</td></tr>
  88. <tr class="separator:a0d13293f3c2d0f2e79e9a93afb0e8fd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  89. <tr class="memitem:ad96c910ae45e6c5d2433bb1d9e910891"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#ad96c910ae45e6c5d2433bb1d9e910891">increment_wait_count</a> ()</td></tr>
  90. <tr class="memdesc:ad96c910ae45e6c5d2433bb1d9e910891"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used to register that an external entity may still interact with the graph. <a href="#ad96c910ae45e6c5d2433bb1d9e910891">More...</a><br/></td></tr>
  91. <tr class="separator:ad96c910ae45e6c5d2433bb1d9e910891"><td class="memSeparator" colspan="2">&#160;</td></tr>
  92. <tr class="memitem:af16d14eaed1355ae376bb78dde7762c3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#af16d14eaed1355ae376bb78dde7762c3">decrement_wait_count</a> ()</td></tr>
  93. <tr class="memdesc:af16d14eaed1355ae376bb78dde7762c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deregisters an external entity that may have interacted with the graph. <a href="#af16d14eaed1355ae376bb78dde7762c3">More...</a><br/></td></tr>
  94. <tr class="separator:af16d14eaed1355ae376bb78dde7762c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:ac0a03f1d59dc2ccb9526995599c2c83c"><td class="memTemplParams" colspan="2">template&lt;typename Receiver , typename Body &gt; </td></tr>
  96. <tr class="memitem:ac0a03f1d59dc2ccb9526995599c2c83c"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00061.html#ac0a03f1d59dc2ccb9526995599c2c83c">run</a> (Receiver &amp;r, Body body)</td></tr>
  97. <tr class="memdesc:ac0a03f1d59dc2ccb9526995599c2c83c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Spawns a task that runs a body and puts its output to a specific receiver. <a href="#ac0a03f1d59dc2ccb9526995599c2c83c">More...</a><br/></td></tr>
  98. <tr class="separator:ac0a03f1d59dc2ccb9526995599c2c83c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a6e428c2d7c8780f3c2587a71c4d92466"><td class="memTemplParams" colspan="2">template&lt;typename Body &gt; </td></tr>
  100. <tr class="memitem:a6e428c2d7c8780f3c2587a71c4d92466"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00061.html#a6e428c2d7c8780f3c2587a71c4d92466">run</a> (Body body)</td></tr>
  101. <tr class="memdesc:a6e428c2d7c8780f3c2587a71c4d92466"><td class="mdescLeft">&#160;</td><td class="mdescRight">Spawns a task that runs a function object. <a href="#a6e428c2d7c8780f3c2587a71c4d92466">More...</a><br/></td></tr>
  102. <tr class="separator:a6e428c2d7c8780f3c2587a71c4d92466"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:a397208ce3b432c83cd24f416b082e8db"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a397208ce3b432c83cd24f416b082e8db">wait_for_all</a> ()</td></tr>
  104. <tr class="memdesc:a397208ce3b432c83cd24f416b082e8db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wait until graph is idle and decrement_wait_count calls equals increment_wait_count calls. <a href="#a397208ce3b432c83cd24f416b082e8db">More...</a><br/></td></tr>
  105. <tr class="separator:a397208ce3b432c83cd24f416b082e8db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:ae5f59627a7d130cf289f105a849ad3f0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae5f59627a7d130cf289f105a849ad3f0"></a>
  107. task *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#ae5f59627a7d130cf289f105a849ad3f0">root_task</a> ()</td></tr>
  108. <tr class="memdesc:ae5f59627a7d130cf289f105a849ad3f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the root task of the graph. <br/></td></tr>
  109. <tr class="separator:ae5f59627a7d130cf289f105a849ad3f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:a91d2f9921342a504668b2cdc3064a846"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a91d2f9921342a504668b2cdc3064a846"></a>
  111. <a class="el" href="a00062.html">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a91d2f9921342a504668b2cdc3064a846">begin</a> ()</td></tr>
  112. <tr class="memdesc:a91d2f9921342a504668b2cdc3064a846"><td class="mdescLeft">&#160;</td><td class="mdescRight">start iterator <br/></td></tr>
  113. <tr class="separator:a91d2f9921342a504668b2cdc3064a846"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:a221a7ee0a1f0e69a01add5c1dda43be7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a221a7ee0a1f0e69a01add5c1dda43be7"></a>
  115. <a class="el" href="a00062.html">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a221a7ee0a1f0e69a01add5c1dda43be7">end</a> ()</td></tr>
  116. <tr class="memdesc:a221a7ee0a1f0e69a01add5c1dda43be7"><td class="mdescLeft">&#160;</td><td class="mdescRight">end iterator <br/></td></tr>
  117. <tr class="separator:a221a7ee0a1f0e69a01add5c1dda43be7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:ac404d2e08620aca079532124551a646a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac404d2e08620aca079532124551a646a"></a>
  119. <a class="el" href="a00062.html">const_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#ac404d2e08620aca079532124551a646a">begin</a> () const </td></tr>
  120. <tr class="memdesc:ac404d2e08620aca079532124551a646a"><td class="mdescLeft">&#160;</td><td class="mdescRight">start const iterator <br/></td></tr>
  121. <tr class="separator:ac404d2e08620aca079532124551a646a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:a599e6a885a76db84928b039063c299e4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a599e6a885a76db84928b039063c299e4"></a>
  123. <a class="el" href="a00062.html">const_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a599e6a885a76db84928b039063c299e4">end</a> () const </td></tr>
  124. <tr class="memdesc:a599e6a885a76db84928b039063c299e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">end const iterator <br/></td></tr>
  125. <tr class="separator:a599e6a885a76db84928b039063c299e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a2af8f195917817ce2b77ff7b6463c344"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2af8f195917817ce2b77ff7b6463c344"></a>
  127. <a class="el" href="a00062.html">const_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a2af8f195917817ce2b77ff7b6463c344">cbegin</a> () const </td></tr>
  128. <tr class="memdesc:a2af8f195917817ce2b77ff7b6463c344"><td class="mdescLeft">&#160;</td><td class="mdescRight">start const iterator <br/></td></tr>
  129. <tr class="separator:a2af8f195917817ce2b77ff7b6463c344"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:acf6d3f610c2675eaf8bf2a40853081aa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acf6d3f610c2675eaf8bf2a40853081aa"></a>
  131. <a class="el" href="a00062.html">const_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#acf6d3f610c2675eaf8bf2a40853081aa">cend</a> () const </td></tr>
  132. <tr class="memdesc:acf6d3f610c2675eaf8bf2a40853081aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">end const iterator <br/></td></tr>
  133. <tr class="separator:acf6d3f610c2675eaf8bf2a40853081aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:a9e26f4f5d608e39c8adc9dc6d06a7a01"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9e26f4f5d608e39c8adc9dc6d06a7a01"></a>
  135. bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a9e26f4f5d608e39c8adc9dc6d06a7a01">is_cancelled</a> ()</td></tr>
  136. <tr class="memdesc:a9e26f4f5d608e39c8adc9dc6d06a7a01"><td class="mdescLeft">&#160;</td><td class="mdescRight">return status of graph execution <br/></td></tr>
  137. <tr class="separator:a9e26f4f5d608e39c8adc9dc6d06a7a01"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:a8183d2d71ce8c8b35d314bbb7d66bda3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8183d2d71ce8c8b35d314bbb7d66bda3"></a>
  139. bool&#160;</td><td class="memItemRight" valign="bottom"><b>exception_thrown</b> ()</td></tr>
  140. <tr class="separator:a8183d2d71ce8c8b35d314bbb7d66bda3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a6652373643b94fa7436874e0c617474e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6652373643b94fa7436874e0c617474e"></a>
  142. void&#160;</td><td class="memItemRight" valign="bottom"><b>reset</b> ()</td></tr>
  143. <tr class="separator:a6652373643b94fa7436874e0c617474e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. </table><table class="memberdecls">
  145. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
  146. Friends</h2></td></tr>
  147. <tr class="memitem:a8bb549de1ad8539cd820379b4a9bc568"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8bb549de1ad8539cd820379b4a9bc568"></a>
  148. class&#160;</td><td class="memItemRight" valign="bottom"><b>graph_node</b></td></tr>
  149. <tr class="separator:a8bb549de1ad8539cd820379b4a9bc568"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:aaa1d1a46765052516277dce8e9bdf63e"><td class="memTemplParams" colspan="2"><a class="anchor" id="aaa1d1a46765052516277dce8e9bdf63e"></a>
  151. template&lt;typename C , typename N &gt; </td></tr>
  152. <tr class="memitem:aaa1d1a46765052516277dce8e9bdf63e"><td class="memTemplItemLeft" align="right" valign="top">class&#160;</td><td class="memTemplItemRight" valign="bottom"><b>graph_iterator</b></td></tr>
  153. <tr class="separator:aaa1d1a46765052516277dce8e9bdf63e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. </table>
  155. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  156. <div class="textblock"><p>The graph class. </p>
  157. <p>This class serves as a handle to the graph </p>
  158. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  159. <a class="anchor" id="a3412df4d4bf0113aed93c958bbb49ec4"></a>
  160. <div class="memitem">
  161. <div class="memproto">
  162. <table class="mlabels">
  163. <tr>
  164. <td class="mlabels-left">
  165. <table class="memname">
  166. <tr>
  167. <td class="memname">tbb::flow::interface7::graph::~graph </td>
  168. <td>(</td>
  169. <td class="paramname">)</td><td></td>
  170. <td></td>
  171. </tr>
  172. </table>
  173. </td>
  174. <td class="mlabels-right">
  175. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  176. </tr>
  177. </table>
  178. </div><div class="memdoc">
  179. <p>Destroys the graph. </p>
  180. <p>Calls wait_for_all, then destroys the root task and context. </p>
  181. </div>
  182. </div>
  183. <h2 class="groupheader">Member Function Documentation</h2>
  184. <a class="anchor" id="af16d14eaed1355ae376bb78dde7762c3"></a>
  185. <div class="memitem">
  186. <div class="memproto">
  187. <table class="mlabels">
  188. <tr>
  189. <td class="mlabels-left">
  190. <table class="memname">
  191. <tr>
  192. <td class="memname">void tbb::flow::interface7::graph::decrement_wait_count </td>
  193. <td>(</td>
  194. <td class="paramname">)</td><td></td>
  195. <td></td>
  196. </tr>
  197. </table>
  198. </td>
  199. <td class="mlabels-right">
  200. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  201. </tr>
  202. </table>
  203. </div><div class="memdoc">
  204. <p>Deregisters an external entity that may have interacted with the graph. </p>
  205. <p>The graph will not return from wait_for_all until all the number of decrement_wait_count calls matches the number of increment_wait_count calls. </p>
  206. </div>
  207. </div>
  208. <a class="anchor" id="ad96c910ae45e6c5d2433bb1d9e910891"></a>
  209. <div class="memitem">
  210. <div class="memproto">
  211. <table class="mlabels">
  212. <tr>
  213. <td class="mlabels-left">
  214. <table class="memname">
  215. <tr>
  216. <td class="memname">void tbb::flow::interface7::graph::increment_wait_count </td>
  217. <td>(</td>
  218. <td class="paramname">)</td><td></td>
  219. <td></td>
  220. </tr>
  221. </table>
  222. </td>
  223. <td class="mlabels-right">
  224. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  225. </tr>
  226. </table>
  227. </div><div class="memdoc">
  228. <p>Used to register that an external entity may still interact with the graph. </p>
  229. <p>The graph will not return from wait_for_all until a matching number of decrement_wait_count calls is made. </p>
  230. </div>
  231. </div>
  232. <a class="anchor" id="ac0a03f1d59dc2ccb9526995599c2c83c"></a>
  233. <div class="memitem">
  234. <div class="memproto">
  235. <div class="memtemplate">
  236. template&lt;typename Receiver , typename Body &gt; </div>
  237. <table class="mlabels">
  238. <tr>
  239. <td class="mlabels-left">
  240. <table class="memname">
  241. <tr>
  242. <td class="memname">void tbb::flow::interface7::graph::run </td>
  243. <td>(</td>
  244. <td class="paramtype">Receiver &amp;&#160;</td>
  245. <td class="paramname"><em>r</em>, </td>
  246. </tr>
  247. <tr>
  248. <td class="paramkey"></td>
  249. <td></td>
  250. <td class="paramtype">Body&#160;</td>
  251. <td class="paramname"><em>body</em>&#160;</td>
  252. </tr>
  253. <tr>
  254. <td></td>
  255. <td>)</td>
  256. <td></td><td></td>
  257. </tr>
  258. </table>
  259. </td>
  260. <td class="mlabels-right">
  261. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  262. </tr>
  263. </table>
  264. </div><div class="memdoc">
  265. <p>Spawns a task that runs a body and puts its output to a specific receiver. </p>
  266. <p>The task is spawned as a child of the graph. This is useful for running tasks that need to block a <a class="el" href="a00061.html#a397208ce3b432c83cd24f416b082e8db" title="Wait until graph is idle and decrement_wait_count calls equals increment_wait_count calls...">wait_for_all()</a> on the graph. For example a one-off source. </p>
  267. </div>
  268. </div>
  269. <a class="anchor" id="a6e428c2d7c8780f3c2587a71c4d92466"></a>
  270. <div class="memitem">
  271. <div class="memproto">
  272. <div class="memtemplate">
  273. template&lt;typename Body &gt; </div>
  274. <table class="mlabels">
  275. <tr>
  276. <td class="mlabels-left">
  277. <table class="memname">
  278. <tr>
  279. <td class="memname">void tbb::flow::interface7::graph::run </td>
  280. <td>(</td>
  281. <td class="paramtype">Body&#160;</td>
  282. <td class="paramname"><em>body</em>)</td><td></td>
  283. <td></td>
  284. </tr>
  285. </table>
  286. </td>
  287. <td class="mlabels-right">
  288. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  289. </tr>
  290. </table>
  291. </div><div class="memdoc">
  292. <p>Spawns a task that runs a function object. </p>
  293. <p>The task is spawned as a child of the graph. This is useful for running tasks that need to block a <a class="el" href="a00061.html#a397208ce3b432c83cd24f416b082e8db" title="Wait until graph is idle and decrement_wait_count calls equals increment_wait_count calls...">wait_for_all()</a> on the graph. For example a one-off source. </p>
  294. </div>
  295. </div>
  296. <a class="anchor" id="a397208ce3b432c83cd24f416b082e8db"></a>
  297. <div class="memitem">
  298. <div class="memproto">
  299. <table class="mlabels">
  300. <tr>
  301. <td class="mlabels-left">
  302. <table class="memname">
  303. <tr>
  304. <td class="memname">void tbb::flow::interface7::graph::wait_for_all </td>
  305. <td>(</td>
  306. <td class="paramname">)</td><td></td>
  307. <td></td>
  308. </tr>
  309. </table>
  310. </td>
  311. <td class="mlabels-right">
  312. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  313. </tr>
  314. </table>
  315. </div><div class="memdoc">
  316. <p>Wait until graph is idle and decrement_wait_count calls equals increment_wait_count calls. </p>
  317. <p>The waiting thread will go off and steal work while it is block in the wait_for_all. </p>
  318. </div>
  319. </div>
  320. <hr/>The documentation for this class was generated from the following file:<ul>
  321. <li><a class="el" href="a00179.html">flow_graph.h</a></li>
  322. </ul>
  323. </div><!-- contents -->
  324. <hr>
  325. <p></p>
  326. Copyright &copy; 2005-2014 Intel Corporation. All Rights Reserved.
  327. <p></p>
  328. Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
  329. registered trademarks or trademarks of Intel Corporation or its
  330. subsidiaries in the United States and other countries.
  331. <p></p>
  332. * Other names and brands may be claimed as the property of others.