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.

154 lines
10 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::recursive_mutex 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"><a class="el" href="a00107.html">recursive_mutex</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="#pub-static-attribs">Static Public Attributes</a> &#124;
  45. <a href="#friends">Friends</a> &#124;
  46. <a href="a00275.html">List of all members</a> </div>
  47. <div class="headertitle">
  48. <div class="title">tbb::recursive_mutex Class Reference<div class="ingroups"><a class="el" href="a00237.html">Synchronization</a></div></div> </div>
  49. </div><!--header-->
  50. <div class="contents">
  51. <p><code>#include &lt;recursive_mutex.h&gt;</code></p>
  52. <table class="memberdecls">
  53. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
  54. Classes</h2></td></tr>
  55. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00120.html">scoped_lock</a></td></tr>
  56. <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The scoped locking pattern. <a href="a00120.html#details">More...</a><br/></td></tr>
  57. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  58. </table><table class="memberdecls">
  59. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  60. Public Types</h2></td></tr>
  61. <tr class="memitem:a3d40334b0e26d5addfde5596e7f9aaec"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3d40334b0e26d5addfde5596e7f9aaec"></a>
  62. typedef LPCRITICAL_SECTION&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00107.html#a3d40334b0e26d5addfde5596e7f9aaec">native_handle_type</a></td></tr>
  63. <tr class="memdesc:a3d40334b0e26d5addfde5596e7f9aaec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return native_handle. <br/></td></tr>
  64. <tr class="separator:a3d40334b0e26d5addfde5596e7f9aaec"><td class="memSeparator" colspan="2">&#160;</td></tr>
  65. <tr class="memitem:a59f90e65656fec5a07e375c6e7cd39f3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a59f90e65656fec5a07e375c6e7cd39f3"></a>
  66. typedef pthread_mutex_t *&#160;</td><td class="memItemRight" valign="bottom"><b>native_handle_type</b></td></tr>
  67. <tr class="separator:a59f90e65656fec5a07e375c6e7cd39f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  68. </table><table class="memberdecls">
  69. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  70. Public Member Functions</h2></td></tr>
  71. <tr class="memitem:a47eb6e7e7ffa5d35341125792b17236b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a47eb6e7e7ffa5d35341125792b17236b"></a>
  72. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00107.html#a47eb6e7e7ffa5d35341125792b17236b">recursive_mutex</a> ()</td></tr>
  73. <tr class="memdesc:a47eb6e7e7ffa5d35341125792b17236b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct unacquired <a class="el" href="a00107.html">recursive_mutex</a>. <br/></td></tr>
  74. <tr class="separator:a47eb6e7e7ffa5d35341125792b17236b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:adea997b45dc4a360f38d14bde9c991f2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adea997b45dc4a360f38d14bde9c991f2"></a>
  76. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00107.html#adea997b45dc4a360f38d14bde9c991f2">lock</a> ()</td></tr>
  77. <tr class="memdesc:adea997b45dc4a360f38d14bde9c991f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Acquire lock. <br/></td></tr>
  78. <tr class="separator:adea997b45dc4a360f38d14bde9c991f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  79. <tr class="memitem:a8b181d9aaa95444145222cfe206e8094"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00107.html#a8b181d9aaa95444145222cfe206e8094">try_lock</a> ()</td></tr>
  80. <tr class="memdesc:a8b181d9aaa95444145222cfe206e8094"><td class="mdescLeft">&#160;</td><td class="mdescRight">Try acquiring lock (non-blocking) <a href="#a8b181d9aaa95444145222cfe206e8094">More...</a><br/></td></tr>
  81. <tr class="separator:a8b181d9aaa95444145222cfe206e8094"><td class="memSeparator" colspan="2">&#160;</td></tr>
  82. <tr class="memitem:af57e8d25e0e7614e98bcfa50bc9416c8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af57e8d25e0e7614e98bcfa50bc9416c8"></a>
  83. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00107.html#af57e8d25e0e7614e98bcfa50bc9416c8">unlock</a> ()</td></tr>
  84. <tr class="memdesc:af57e8d25e0e7614e98bcfa50bc9416c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Release lock. <br/></td></tr>
  85. <tr class="separator:af57e8d25e0e7614e98bcfa50bc9416c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  86. <tr class="memitem:a050ca2a8d3b5c98f9d6c1252856436db"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a050ca2a8d3b5c98f9d6c1252856436db"></a>
  87. <a class="el" href="a00107.html#a3d40334b0e26d5addfde5596e7f9aaec">native_handle_type</a>&#160;</td><td class="memItemRight" valign="bottom"><b>native_handle</b> ()</td></tr>
  88. <tr class="separator:a050ca2a8d3b5c98f9d6c1252856436db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  89. </table><table class="memberdecls">
  90. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
  91. Static Public Attributes</h2></td></tr>
  92. <tr class="memitem:a668511b8520c41a342c038ba26ce70ff"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a668511b8520c41a342c038ba26ce70ff"></a>
  93. static const bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_rw_mutex</b> = false</td></tr>
  94. <tr class="separator:a668511b8520c41a342c038ba26ce70ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:a2817cf2c1a7875590548f49a834ca668"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2817cf2c1a7875590548f49a834ca668"></a>
  96. static const bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_recursive_mutex</b> = true</td></tr>
  97. <tr class="separator:a2817cf2c1a7875590548f49a834ca668"><td class="memSeparator" colspan="2">&#160;</td></tr>
  98. <tr class="memitem:abcc4a830c307cb4d25311550a527fe4d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abcc4a830c307cb4d25311550a527fe4d"></a>
  99. static const bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_fair_mutex</b> = false</td></tr>
  100. <tr class="separator:abcc4a830c307cb4d25311550a527fe4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. </table><table class="memberdecls">
  102. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
  103. Friends</h2></td></tr>
  104. <tr class="memitem:afcf922650b2fd9d76b7b939d8511bbd8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afcf922650b2fd9d76b7b939d8511bbd8"></a>
  105. class&#160;</td><td class="memItemRight" valign="bottom"><b>scoped_lock</b></td></tr>
  106. <tr class="separator:afcf922650b2fd9d76b7b939d8511bbd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. </table>
  108. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  109. <div class="textblock"><p>Mutex that allows recursive mutex acquisition. </p>
  110. </div><h2 class="groupheader">Member Function Documentation</h2>
  111. <a class="anchor" id="a8b181d9aaa95444145222cfe206e8094"></a>
  112. <div class="memitem">
  113. <div class="memproto">
  114. <table class="mlabels">
  115. <tr>
  116. <td class="mlabels-left">
  117. <table class="memname">
  118. <tr>
  119. <td class="memname">bool tbb::recursive_mutex::try_lock </td>
  120. <td>(</td>
  121. <td class="paramname">)</td><td></td>
  122. <td></td>
  123. </tr>
  124. </table>
  125. </td>
  126. <td class="mlabels-right">
  127. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  128. </tr>
  129. </table>
  130. </div><div class="memdoc">
  131. <p>Try acquiring lock (non-blocking) </p>
  132. <p>Return true if lock acquired; false otherwise. </p>
  133. <p>References <a class="el" href="a00014.html#a3525dbbac0d4eaedfe18bc57b7760857">tbb::aligned_space&lt; T, N &gt;::begin()</a>.</p>
  134. <p>Referenced by <a class="el" href="a00120.html#a160bba506f4033980ddb69ab7a02c4fb">tbb::recursive_mutex::scoped_lock::try_acquire()</a>.</p>
  135. </div>
  136. </div>
  137. <hr/>The documentation for this class was generated from the following file:<ul>
  138. <li>recursive_mutex.h</li>
  139. </ul>
  140. </div><!-- contents -->
  141. <hr>
  142. <p></p>
  143. Copyright &copy; 2005-2014 Intel Corporation. All Rights Reserved.
  144. <p></p>
  145. Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
  146. registered trademarks or trademarks of Intel Corporation or its
  147. subsidiaries in the United States and other countries.
  148. <p></p>
  149. * Other names and brands may be claimed as the property of others.