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.

170 lines
14 KiB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  3. <title>tbb::flow::interface6::continue_receiver Class Reference</title>
  4. <link href="doxygen.css" rel="stylesheet" type="text/css">
  5. <link href="tabs.css" rel="stylesheet" type="text/css">
  6. </head><body>
  7. <!-- Generated by Doxygen 1.4.7 -->
  8. <div class="tabs">
  9. <ul>
  10. <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
  11. <li><a href="modules.html"><span>Modules</span></a></li>
  12. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  13. <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
  14. <li><a href="files.html"><span>Files</span></a></li>
  15. <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  16. </ul></div>
  17. <div class="tabs">
  18. <ul>
  19. <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
  20. <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
  21. <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  22. </ul></div>
  23. <div class="nav">
  24. <a class="el" href="a00428.html">tbb</a>::<b>flow</b>::<b>interface6</b>::<a class="el" href="a00291.html">continue_receiver</a></div>
  25. <h1>tbb::flow::interface6::continue_receiver Class Reference</h1><!-- doxytag: class="tbb::flow::interface6::continue_receiver" --><!-- doxytag: inherits="tbb::flow::interface6::receiver" -->Base class for receivers of completion messages.
  26. <a href="#_details">More...</a>
  27. <p>
  28. <code>#include &lt;flow_graph.h&gt;</code>
  29. <p>
  30. <p>Inheritance diagram for tbb::flow::interface6::continue_receiver:
  31. <p><center><img src="a00291.png" usemap="#tbb::flow::interface6::continue_receiver_map" border="0" alt=""></center>
  32. <map name="tbb::flow::interface6::continue_receiver_map">
  33. <area href="a00333.html" alt="tbb::flow::interface6::receiver< T >" shape="rect" coords="0,0,230,24">
  34. </map>
  35. <a href="a00057.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
  36. <tr><td></td></tr>
  37. <tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
  38. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3c43c166af832d9187035985841e0a7f"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::input_type" ref="3c43c166af832d9187035985841e0a7f" args="" -->
  39. typedef <a class="el" href="a00289.html">continue_msg</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00291.html#3c43c166af832d9187035985841e0a7f">input_type</a></td></tr>
  40. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The input type. <br></td></tr>
  41. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f9c58b3e9c46afd2518d0fd8957a5a2f"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::predecessor_type" ref="f9c58b3e9c46afd2518d0fd8957a5a2f" args="" -->
  42. typedef <a class="el" href="a00339.html">sender</a>&lt; <a class="el" href="a00289.html">continue_msg</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00291.html#f9c58b3e9c46afd2518d0fd8957a5a2f">predecessor_type</a></td></tr>
  43. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The predecessor type for this node. <br></td></tr>
  44. <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
  45. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="177db82d548a1f8471371331890b91a8"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::continue_receiver" ref="177db82d548a1f8471371331890b91a8" args="(int number_of_predecessors=0)" -->
  46. &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00291.html#177db82d548a1f8471371331890b91a8">continue_receiver</a> (int number_of_predecessors=0)</td></tr>
  47. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <br></td></tr>
  48. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0b292ed7fa6556b2a735f6d1e82dc74"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::continue_receiver" ref="a0b292ed7fa6556b2a735f6d1e82dc74" args="(const continue_receiver &amp;src)" -->
  49. &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00291.html#a0b292ed7fa6556b2a735f6d1e82dc74">continue_receiver</a> (const <a class="el" href="a00291.html">continue_receiver</a> &amp;src)</td></tr>
  50. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor. <br></td></tr>
  51. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1e14828fa079b9835ff7267df5ee45d7"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::~continue_receiver" ref="1e14828fa079b9835ff7267df5ee45d7" args="()" -->
  52. virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00291.html#1e14828fa079b9835ff7267df5ee45d7">~continue_receiver</a> ()</td></tr>
  53. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <br></td></tr>
  54. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2fcfa4990a42417bbeb1f3c8b9ac8a22"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::register_predecessor" ref="2fcfa4990a42417bbeb1f3c8b9ac8a22" args="(predecessor_type &amp;)" -->
  55. bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00291.html#2fcfa4990a42417bbeb1f3c8b9ac8a22">register_predecessor</a> (<a class="el" href="a00339.html">predecessor_type</a> &amp;)</td></tr>
  56. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Increments the trigger threshold. <br></td></tr>
  57. <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00291.html#cb691b18416d4742265aed84d496ebbd">remove_predecessor</a> (<a class="el" href="a00339.html">predecessor_type</a> &amp;)</td></tr>
  58. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Decrements the trigger threshold. <a href="#cb691b18416d4742265aed84d496ebbd"></a><br></td></tr>
  59. <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
  60. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d376c9412b0b5953ee2f2705ba993589"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::try_put_task" ref="d376c9412b0b5953ee2f2705ba993589" args="(const input_type &amp;)" -->
  61. <a class="el" href="a00349.html">task</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>try_put_task</b> (const <a class="el" href="a00289.html">input_type</a> &amp;)</td></tr>
  62. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e884193748f7637fded5bda02e3b7a9d"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::reset_receiver" ref="e884193748f7637fded5bda02e3b7a9d" args="()" -->
  63. void&nbsp;</td><td class="memItemRight" valign="bottom"><b>reset_receiver</b> ()</td></tr>
  64. <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="a00349.html">task</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00291.html#2165b726212975be532cff7b2f001834">execute</a> ()=0</td></tr>
  65. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Does whatever should happen when the threshold is reached. <a href="#2165b726212975be532cff7b2f001834"></a><br></td></tr>
  66. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7adfecde604fd68d9b0e1e6ae28d9783"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::is_continue_receiver" ref="7adfecde604fd68d9b0e1e6ae28d9783" args="()" -->
  67. bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>is_continue_receiver</b> ()</td></tr>
  68. <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
  69. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5cddbd33109e94a68fb5457682a62110"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::my_mutex" ref="5cddbd33109e94a68fb5457682a62110" args="" -->
  70. <a class="el" href="a00343.html">spin_mutex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>my_mutex</b></td></tr>
  71. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="66df49f67e70e7f8e9831d0e362ba84c"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::my_predecessor_count" ref="66df49f67e70e7f8e9831d0e362ba84c" args="" -->
  72. int&nbsp;</td><td class="memItemRight" valign="bottom"><b>my_predecessor_count</b></td></tr>
  73. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05fd1ce3c3fd7be3e74817b31fd2f068"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::my_current_count" ref="05fd1ce3c3fd7be3e74817b31fd2f068" args="" -->
  74. int&nbsp;</td><td class="memItemRight" valign="bottom"><b>my_current_count</b></td></tr>
  75. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8a0d4c3084fd13902c2d38f31c1dc232"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::my_initial_predecessor_count" ref="8a0d4c3084fd13902c2d38f31c1dc232" args="" -->
  76. int&nbsp;</td><td class="memItemRight" valign="bottom"><b>my_initial_predecessor_count</b></td></tr>
  77. <tr><td colspan="2"><br><h2>Friends</h2></td></tr>
  78. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="621bab40a858d214db69ef08d88b67c1"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::run_and_put_task" ref="621bab40a858d214db69ef08d88b67c1" args="" -->
  79. class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00291.html#621bab40a858d214db69ef08d88b67c1">run_and_put_task</a></td></tr>
  80. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">put item to successor; return task to run the successor if possible. <br></td></tr>
  81. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e4fa30d87bc0bfa80942f97a8d58f1bd"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::internal::broadcast_cache" ref="e4fa30d87bc0bfa80942f97a8d58f1bd" args="" -->
  82. class&nbsp;</td><td class="memItemRight" valign="bottom"><b>internal::broadcast_cache</b></td></tr>
  83. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="31ba00ea3e3e5a421b38840bd0dc2589"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::internal::round_robin_cache" ref="31ba00ea3e3e5a421b38840bd0dc2589" args="" -->
  84. class&nbsp;</td><td class="memItemRight" valign="bottom"><b>internal::round_robin_cache</b></td></tr>
  85. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3b6d13039c2a8c1e369e5790895b0088"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::limiter_node" ref="3b6d13039c2a8c1e369e5790895b0088" args="" -->
  86. class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00291.html#3b6d13039c2a8c1e369e5790895b0088">limiter_node</a></td></tr>
  87. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">put receiver back in initial state <br></td></tr>
  88. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7e5acd3345f7903a0265a1ef9f3b66bc"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::internal::successor_cache" ref="7e5acd3345f7903a0265a1ef9f3b66bc" args="" -->
  89. class&nbsp;</td><td class="memItemRight" valign="bottom"><b>internal::successor_cache</b></td></tr>
  90. </table>
  91. <hr><a name="_details"></a><h2>Detailed Description</h2>
  92. Base class for receivers of completion messages.
  93. <p>
  94. These receivers automatically reset, but cannot be explicitly waited on
  95. <p>
  96. <hr><h2>Member Function Documentation</h2>
  97. <a class="anchor" name="2165b726212975be532cff7b2f001834"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::execute" ref="2165b726212975be532cff7b2f001834" args="()=0" -->
  98. <div class="memitem">
  99. <div class="memproto">
  100. <table class="memname">
  101. <tr>
  102. <td class="memname">virtual <a class="el" href="a00349.html">task</a>* tbb::flow::interface6::continue_receiver::execute </td>
  103. <td>(</td>
  104. <td class="paramname"> </td>
  105. <td>&nbsp;)&nbsp;</td>
  106. <td width="100%"><code> [protected, pure virtual]</code></td>
  107. </tr>
  108. </table>
  109. </div>
  110. <div class="memdoc">
  111. <p>
  112. Does whatever should happen when the threshold is reached.
  113. <p>
  114. This should be very fast or else spawn a task. This is called while the sender is blocked in the <a class="el" href="a00333.html#e1adb4060a7cbac837cd24da57c5a846">try_put()</a>.
  115. </div>
  116. </div><p>
  117. <a class="anchor" name="cb691b18416d4742265aed84d496ebbd"></a><!-- doxytag: member="tbb::flow::interface6::continue_receiver::remove_predecessor" ref="cb691b18416d4742265aed84d496ebbd" args="(predecessor_type &amp;)" -->
  118. <div class="memitem">
  119. <div class="memproto">
  120. <table class="memname">
  121. <tr>
  122. <td class="memname">bool tbb::flow::interface6::continue_receiver::remove_predecessor </td>
  123. <td>(</td>
  124. <td class="paramtype"><a class="el" href="a00339.html">predecessor_type</a> &amp;&nbsp;</td>
  125. <td class="paramname"> </td>
  126. <td>&nbsp;)&nbsp;</td>
  127. <td width="100%"><code> [inline]</code></td>
  128. </tr>
  129. </table>
  130. </div>
  131. <div class="memdoc">
  132. <p>
  133. Decrements the trigger threshold.
  134. <p>
  135. Does not check to see if the removal of the predecessor now makes the current count exceed the new threshold. So removing a predecessor while the graph is active can cause unexpected results.
  136. </div>
  137. </div><p>
  138. <hr>The documentation for this class was generated from the following file:<ul>
  139. <li><a class="el" href="a00385.html">flow_graph.h</a></ul>
  140. <hr>
  141. <p></p>
  142. Copyright &copy; 2005-2013 Intel Corporation. All Rights Reserved.
  143. <p></p>
  144. Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
  145. registered trademarks or trademarks of Intel Corporation or its
  146. subsidiaries in the United States and other countries.
  147. <p></p>
  148. * Other names and brands may be claimed as the property of others.