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.

231 lines
13 KiB

  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class CriticalSection
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class CriticalSection
  11. ">
  12. <meta name="generator" content="docfx 2.45.0.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  18. <meta property="docfx:navrel" content="../toc.html">
  19. <meta property="docfx:tocrel" content="toc.html">
  20. <meta property="docfx:rel" content="../">
  21. <meta property="docfx:newtab" content="true">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../index.html">
  35. <img id="logo" class="svg" src="../logo.svg" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list"></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="IPA.Utilities.CriticalSection">
  74. <h1 id="IPA_Utilities_CriticalSection" data-uid="IPA.Utilities.CriticalSection" class="text-break">Class CriticalSection
  75. </h1>
  76. <div class="markdown level0 summary"><p>Provides utilities for managing various critical sections.</p>
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <div class="inheritance">
  80. <h5>Inheritance</h5>
  81. <div class="level0"><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></div>
  82. <div class="level1"><span class="xref">CriticalSection</span></div>
  83. </div>
  84. <div class="inheritedMembers">
  85. <h5>Inherited Members</h5>
  86. <div>
  87. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.tostring#System_Object_ToString">Object.ToString()</a>
  88. </div>
  89. <div>
  90. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_">Object.Equals(Object)</a>
  91. </div>
  92. <div>
  93. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_System_Object_">Object.Equals(Object, Object)</a>
  94. </div>
  95. <div>
  96. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.referenceequals#System_Object_ReferenceEquals_System_Object_System_Object_">Object.ReferenceEquals(Object, Object)</a>
  97. </div>
  98. <div>
  99. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gethashcode#System_Object_GetHashCode">Object.GetHashCode()</a>
  100. </div>
  101. <div>
  102. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gettype#System_Object_GetType">Object.GetType()</a>
  103. </div>
  104. <div>
  105. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.memberwiseclone#System_Object_MemberwiseClone">Object.MemberwiseClone()</a>
  106. </div>
  107. </div>
  108. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Utilities.html">IPA.Utilities</a></h6>
  109. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  110. <h5 id="IPA_Utilities_CriticalSection_syntax">Syntax</h5>
  111. <div class="codewrapper">
  112. <pre><code class="lang-csharp hljs">public static class CriticalSection</code></pre>
  113. </div>
  114. <h3 id="methods">Methods
  115. </h3>
  116. <span class="small pull-right mobile-hide">
  117. <span class="divider">|</span>
  118. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_CriticalSection_EnterExecuteSection.md&amp;value=---%0Auid%3A%20IPA.Utilities.CriticalSection.EnterExecuteSection%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  119. </span>
  120. <span class="small pull-right mobile-hide">
  121. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/f033bf71db3b1140e4dd6649de1aee1a0eeaa49e/IPA.Loader/Utilities/CriticalSection.cs/#L111">View Source</a>
  122. </span>
  123. <a id="IPA_Utilities_CriticalSection_EnterExecuteSection_" data-uid="IPA.Utilities.CriticalSection.EnterExecuteSection*"></a>
  124. <h4 id="IPA_Utilities_CriticalSection_EnterExecuteSection" data-uid="IPA.Utilities.CriticalSection.EnterExecuteSection">EnterExecuteSection()</h4>
  125. <div class="markdown level1 summary"><p>Enters a critical execution section. Does not nest.</p>
  126. </div>
  127. <div class="markdown level1 conceptual"></div>
  128. <h5 class="decalaration">Declaration</h5>
  129. <div class="codewrapper">
  130. <pre><code class="lang-csharp hljs">public static void EnterExecuteSection()</code></pre>
  131. </div>
  132. <span class="small pull-right mobile-hide">
  133. <span class="divider">|</span>
  134. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_CriticalSection_EnterGCSection.md&amp;value=---%0Auid%3A%20IPA.Utilities.CriticalSection.EnterGCSection%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  135. </span>
  136. <span class="small pull-right mobile-hide">
  137. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/f033bf71db3b1140e4dd6649de1aee1a0eeaa49e/IPA.Loader/Utilities/CriticalSection.cs/#L156">View Source</a>
  138. </span>
  139. <a id="IPA_Utilities_CriticalSection_EnterGCSection_" data-uid="IPA.Utilities.CriticalSection.EnterGCSection*"></a>
  140. <h4 id="IPA_Utilities_CriticalSection_EnterGCSection" data-uid="IPA.Utilities.CriticalSection.EnterGCSection">EnterGCSection()</h4>
  141. <div class="markdown level1 summary"><p>Enters a GC critical section. Each call to this must be paired with a call to <a class="xref" href="IPA.Utilities.CriticalSection.html#IPA_Utilities_CriticalSection_ExitGCSection">ExitGCSection()</a>.</p>
  142. </div>
  143. <div class="markdown level1 conceptual"></div>
  144. <h5 class="decalaration">Declaration</h5>
  145. <div class="codewrapper">
  146. <pre><code class="lang-csharp hljs">public static void EnterGCSection()</code></pre>
  147. </div>
  148. <span class="small pull-right mobile-hide">
  149. <span class="divider">|</span>
  150. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_CriticalSection_ExitExecuteSection.md&amp;value=---%0Auid%3A%20IPA.Utilities.CriticalSection.ExitExecuteSection%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  151. </span>
  152. <span class="small pull-right mobile-hide">
  153. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/f033bf71db3b1140e4dd6649de1aee1a0eeaa49e/IPA.Loader/Utilities/CriticalSection.cs/#L128">View Source</a>
  154. </span>
  155. <a id="IPA_Utilities_CriticalSection_ExitExecuteSection_" data-uid="IPA.Utilities.CriticalSection.ExitExecuteSection*"></a>
  156. <h4 id="IPA_Utilities_CriticalSection_ExitExecuteSection" data-uid="IPA.Utilities.CriticalSection.ExitExecuteSection">ExitExecuteSection()</h4>
  157. <div class="markdown level1 summary"><p>Exits a critical execution section. Does not nest.</p>
  158. </div>
  159. <div class="markdown level1 conceptual"></div>
  160. <h5 class="decalaration">Declaration</h5>
  161. <div class="codewrapper">
  162. <pre><code class="lang-csharp hljs">public static void ExitExecuteSection()</code></pre>
  163. </div>
  164. <span class="small pull-right mobile-hide">
  165. <span class="divider">|</span>
  166. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_CriticalSection_ExitGCSection.md&amp;value=---%0Auid%3A%20IPA.Utilities.CriticalSection.ExitGCSection%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  167. </span>
  168. <span class="small pull-right mobile-hide">
  169. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/f033bf71db3b1140e4dd6649de1aee1a0eeaa49e/IPA.Loader/Utilities/CriticalSection.cs/#L171">View Source</a>
  170. </span>
  171. <a id="IPA_Utilities_CriticalSection_ExitGCSection_" data-uid="IPA.Utilities.CriticalSection.ExitGCSection*"></a>
  172. <h4 id="IPA_Utilities_CriticalSection_ExitGCSection" data-uid="IPA.Utilities.CriticalSection.ExitGCSection">ExitGCSection()</h4>
  173. <div class="markdown level1 summary"><p>Exits a GC critical section. Each call to this must have a preceding call to <a class="xref" href="IPA.Utilities.CriticalSection.html#IPA_Utilities_CriticalSection_EnterGCSection">EnterGCSection()</a>.</p>
  174. </div>
  175. <div class="markdown level1 conceptual"></div>
  176. <h5 class="decalaration">Declaration</h5>
  177. <div class="codewrapper">
  178. <pre><code class="lang-csharp hljs">public static void ExitGCSection()</code></pre>
  179. </div>
  180. </article>
  181. </div>
  182. <div class="hidden-sm col-md-2" role="complementary">
  183. <div class="sideaffix">
  184. <div class="contribution">
  185. <ul class="nav">
  186. <li>
  187. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Utilities_CriticalSection.md&amp;value=---%0Auid%3A%20IPA.Utilities.CriticalSection%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  188. </li>
  189. <li>
  190. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/f033bf71db3b1140e4dd6649de1aee1a0eeaa49e/IPA.Loader/Utilities/CriticalSection.cs/#L14" class="contribution-link">View Source</a>
  191. </li>
  192. </ul>
  193. </div>
  194. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  195. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  196. </nav>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. <footer>
  202. <div class="grad-bottom"></div>
  203. <div class="footer">
  204. <div class="container">
  205. <span class="pull-right">
  206. <a href="#top">Back to top</a>
  207. </span>
  208. <span>Generated by <strong>DocFX</strong></span>
  209. </div>
  210. </div>
  211. </footer>
  212. </div>
  213. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  214. <script type="text/javascript" src="../styles/docfx.js"></script>
  215. <script type="text/javascript" src="../styles/main.js"></script>
  216. </body>
  217. </html>