This commit is contained in:
2025-10-16 22:18:12 +08:00
parent 6e3e702730
commit 58fe57b9c6
29 changed files with 945 additions and 220 deletions
@@ -212,8 +212,8 @@ Limits the number of concurrent tasks and provides mechanisms for waiting for al
<a id="Hi_Parallels_QueueTaskScheduler__ctor_" data-uid="Hi.Parallels.QueueTaskScheduler.#ctor*"></a>
<h3 id="Hi_Parallels_QueueTaskScheduler__ctor_System_Int32_System_Int32_" data-uid="Hi.Parallels.QueueTaskScheduler.#ctor(System.Int32,System.Int32)">
QueueTaskScheduler(int, int)
<h3 id="Hi_Parallels_QueueTaskScheduler__ctor_System_Int32_System_Int32_System_Threading_ThreadPriority_" data-uid="Hi.Parallels.QueueTaskScheduler.#ctor(System.Int32,System.Int32,System.Threading.ThreadPriority)">
QueueTaskScheduler(int, int, ThreadPriority)
</h3>
@@ -222,7 +222,7 @@ Limits the number of concurrent tasks and provides mechanisms for waiting for al
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public QueueTaskScheduler(int maxIdlingTaskNum, int maxWorkingTaskNum = 0)</code></pre>
<pre><code class="lang-csharp hljs">public QueueTaskScheduler(int maxIdlingTaskNum, int maxWorkingTaskNum = 0, ThreadPriority threadPriority = ThreadPriority.BelowNormal)</code></pre>
</div>
<h4 class="section">Parameters</h4>
@@ -233,6 +233,8 @@ Limits the number of concurrent tasks and provides mechanisms for waiting for al
<dt><code>maxWorkingTaskNum</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The maximum number of tasks that can be executed concurrently. If 0, defaults to the number of processors.</p>
</dd>
<dt><code>threadPriority</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.threadpriority">ThreadPriority</a></dt>
<dd></dd>
</dl>
@@ -314,6 +316,37 @@ Limits the number of concurrent tasks and provides mechanisms for waiting for al
<a id="Hi_Parallels_QueueTaskScheduler_ThreadPriority_" data-uid="Hi.Parallels.QueueTaskScheduler.ThreadPriority*"></a>
<h3 id="Hi_Parallels_QueueTaskScheduler_ThreadPriority" data-uid="Hi.Parallels.QueueTaskScheduler.ThreadPriority">
ThreadPriority
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public ThreadPriority ThreadPriority { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.threadpriority">ThreadPriority</a></dt>
<dd></dd>
</dl>
<h2 class="section" id="methods">Methods
</h2>