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.

185 lines
11 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::internal::task_scheduler_observer_v3 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>internal</b></li><li class="navelem"><a class="el" href="a00143.html">task_scheduler_observer_v3</a></li> </ul>
  37. </div>
  38. </div><!-- top -->
  39. <div class="header">
  40. <div class="summary">
  41. <a href="#pub-methods">Public Member Functions</a> &#124;
  42. <a href="#friends">Friends</a> &#124;
  43. <a href="a00374.html">List of all members</a> </div>
  44. <div class="headertitle">
  45. <div class="title">tbb::internal::task_scheduler_observer_v3 Class Reference</div> </div>
  46. </div><!--header-->
  47. <div class="contents">
  48. <div class="dynheader">
  49. Inheritance diagram for tbb::internal::task_scheduler_observer_v3:</div>
  50. <div class="dyncontent">
  51. <div class="center">
  52. <img src="a00143.png" usemap="#tbb::internal::task_scheduler_observer_v3_map" alt=""/>
  53. <map id="tbb::internal::task_scheduler_observer_v3_map" name="tbb::internal::task_scheduler_observer_v3_map">
  54. <area href="a00142.html" alt="tbb::interface6::task_scheduler_observer" shape="rect" coords="0,56,247,80"/>
  55. </map>
  56. </div></div>
  57. <table class="memberdecls">
  58. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  59. Public Member Functions</h2></td></tr>
  60. <tr class="memitem:a40209b347e3c82bb5bfda05941304309"><td class="memItemLeft" align="right" valign="top">void __TBB_EXPORTED_METHOD&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00143.html#a40209b347e3c82bb5bfda05941304309">observe</a> (bool state=true)</td></tr>
  61. <tr class="memdesc:a40209b347e3c82bb5bfda05941304309"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable or disable observation. <a href="#a40209b347e3c82bb5bfda05941304309">More...</a><br/></td></tr>
  62. <tr class="separator:a40209b347e3c82bb5bfda05941304309"><td class="memSeparator" colspan="2">&#160;</td></tr>
  63. <tr class="memitem:a31abaf256f7172f010cfb2259c7787bb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a31abaf256f7172f010cfb2259c7787bb"></a>
  64. bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00143.html#a31abaf256f7172f010cfb2259c7787bb">is_observing</a> () const </td></tr>
  65. <tr class="memdesc:a31abaf256f7172f010cfb2259c7787bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if observation is enabled, false otherwise. <br/></td></tr>
  66. <tr class="separator:a31abaf256f7172f010cfb2259c7787bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  67. <tr class="memitem:a25bffb05efaaab36bc58590969e29745"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a25bffb05efaaab36bc58590969e29745"></a>
  68. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00143.html#a25bffb05efaaab36bc58590969e29745">task_scheduler_observer_v3</a> ()</td></tr>
  69. <tr class="memdesc:a25bffb05efaaab36bc58590969e29745"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct observer with observation disabled. <br/></td></tr>
  70. <tr class="separator:a25bffb05efaaab36bc58590969e29745"><td class="memSeparator" colspan="2">&#160;</td></tr>
  71. <tr class="memitem:af4282a27725fbe86052bb785bdd9c5d3"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00143.html#af4282a27725fbe86052bb785bdd9c5d3">on_scheduler_entry</a> (bool)</td></tr>
  72. <tr class="memdesc:af4282a27725fbe86052bb785bdd9c5d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Entry notification. <a href="#af4282a27725fbe86052bb785bdd9c5d3">More...</a><br/></td></tr>
  73. <tr class="separator:af4282a27725fbe86052bb785bdd9c5d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  74. <tr class="memitem:a657e90f833568e217b807d0122fa7668"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00143.html#a657e90f833568e217b807d0122fa7668">on_scheduler_exit</a> (bool)</td></tr>
  75. <tr class="memdesc:a657e90f833568e217b807d0122fa7668"><td class="mdescLeft">&#160;</td><td class="mdescRight">Exit notification. <a href="#a657e90f833568e217b807d0122fa7668">More...</a><br/></td></tr>
  76. <tr class="separator:a657e90f833568e217b807d0122fa7668"><td class="memSeparator" colspan="2">&#160;</td></tr>
  77. <tr class="memitem:a151e475ebba39172fcc13f43bed426cc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a151e475ebba39172fcc13f43bed426cc"></a>
  78. virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00143.html#a151e475ebba39172fcc13f43bed426cc">~task_scheduler_observer_v3</a> ()</td></tr>
  79. <tr class="memdesc:a151e475ebba39172fcc13f43bed426cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor automatically switches observation off if it is enabled. <br/></td></tr>
  80. <tr class="separator:a151e475ebba39172fcc13f43bed426cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. </table><table class="memberdecls">
  82. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
  83. Friends</h2></td></tr>
  84. <tr class="memitem:a897b52f8da750f35b9b2ef410eae7181"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a897b52f8da750f35b9b2ef410eae7181"></a>
  85. class&#160;</td><td class="memItemRight" valign="bottom"><b>observer_proxy</b></td></tr>
  86. <tr class="separator:a897b52f8da750f35b9b2ef410eae7181"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:a232d1ae378b2c82f9788c5611429298b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a232d1ae378b2c82f9788c5611429298b"></a>
  88. class&#160;</td><td class="memItemRight" valign="bottom"><b>observer_list</b></td></tr>
  89. <tr class="separator:a232d1ae378b2c82f9788c5611429298b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:ad972d2c44eeed885d9df2b75e7231277"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad972d2c44eeed885d9df2b75e7231277"></a>
  91. class&#160;</td><td class="memItemRight" valign="bottom"><b>interface6::task_scheduler_observer</b></td></tr>
  92. <tr class="separator:ad972d2c44eeed885d9df2b75e7231277"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. </table>
  94. <h2 class="groupheader">Member Function Documentation</h2>
  95. <a class="anchor" id="a40209b347e3c82bb5bfda05941304309"></a>
  96. <div class="memitem">
  97. <div class="memproto">
  98. <table class="memname">
  99. <tr>
  100. <td class="memname">void __TBB_EXPORTED_METHOD tbb::internal::task_scheduler_observer_v3::observe </td>
  101. <td>(</td>
  102. <td class="paramtype">bool&#160;</td>
  103. <td class="paramname"><em>state</em> = <code>true</code>)</td><td></td>
  104. <td></td>
  105. </tr>
  106. </table>
  107. </div><div class="memdoc">
  108. <p>Enable or disable observation. </p>
  109. <p>For local observers the method can be used only when the current thread has the task scheduler initialized or is attached to an arena.</p>
  110. <p>Repeated calls with the same state are no-ops. </p>
  111. <p>Referenced by <a class="el" href="a00142.html#a9ef3f1853439b46e5a9db7fd1c0f9116">tbb::interface6::task_scheduler_observer::~task_scheduler_observer()</a>, and <a class="el" href="a00143.html#a151e475ebba39172fcc13f43bed426cc">~task_scheduler_observer_v3()</a>.</p>
  112. </div>
  113. </div>
  114. <a class="anchor" id="af4282a27725fbe86052bb785bdd9c5d3"></a>
  115. <div class="memitem">
  116. <div class="memproto">
  117. <table class="mlabels">
  118. <tr>
  119. <td class="mlabels-left">
  120. <table class="memname">
  121. <tr>
  122. <td class="memname">virtual void tbb::internal::task_scheduler_observer_v3::on_scheduler_entry </td>
  123. <td>(</td>
  124. <td class="paramtype">bool&#160;</td>
  125. <td class="paramname">)</td><td></td>
  126. <td></td>
  127. </tr>
  128. </table>
  129. </td>
  130. <td class="mlabels-right">
  131. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  132. </tr>
  133. </table>
  134. </div><div class="memdoc">
  135. <p>Entry notification. </p>
  136. <p>Invoked from inside observe(true) call and whenever a worker enters the arena this observer is associated with. If a thread is already in the arena when the observer is activated, the entry notification is called before it executes the first stolen task.</p>
  137. <p>Obsolete semantics. For global observers it is called by a thread before the first steal since observation became enabled. </p>
  138. </div>
  139. </div>
  140. <a class="anchor" id="a657e90f833568e217b807d0122fa7668"></a>
  141. <div class="memitem">
  142. <div class="memproto">
  143. <table class="mlabels">
  144. <tr>
  145. <td class="mlabels-left">
  146. <table class="memname">
  147. <tr>
  148. <td class="memname">virtual void tbb::internal::task_scheduler_observer_v3::on_scheduler_exit </td>
  149. <td>(</td>
  150. <td class="paramtype">bool&#160;</td>
  151. <td class="paramname">)</td><td></td>
  152. <td></td>
  153. </tr>
  154. </table>
  155. </td>
  156. <td class="mlabels-right">
  157. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  158. </tr>
  159. </table>
  160. </div><div class="memdoc">
  161. <p>Exit notification. </p>
  162. <p>Invoked from inside observe(false) call and whenever a worker leaves the arena this observer is associated with.</p>
  163. <p>Obsolete semantics. For global observers it is called by a thread before the first steal since observation became enabled. </p>
  164. </div>
  165. </div>
  166. <hr/>The documentation for this class was generated from the following file:<ul>
  167. <li>task_scheduler_observer.h</li>
  168. </ul>
  169. </div><!-- contents -->
  170. <hr>
  171. <p></p>
  172. Copyright &copy; 2005-2014 Intel Corporation. All Rights Reserved.
  173. <p></p>
  174. Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
  175. registered trademarks or trademarks of Intel Corporation or its
  176. subsidiaries in the United States and other countries.
  177. <p></p>
  178. * Other names and brands may be claimed as the property of others.