# CSJ2K.j2k.util.ThreadPool

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_util_ThreadPool" data-uid="CSJ2K.j2k.util.ThreadPool" class="text-break">ThreadPool Class
</h1>
  <div class="markdown level0 summary"></div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">ThreadPool</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.util.html">CSJ2K.j2k.util</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ReportViewer.4.6.2.dll</h6>
  <h5 id="CSJ2K_j2k_util_ThreadPool_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ThreadPool</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ThreadPool</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_util_ThreadPool__ctor_System_Int32_System_Int32_System_String_" data-uid="CSJ2K.j2k.util.ThreadPool.#ctor(System.Int32,System.Int32,System.String)">
          <a class="xref" href="CSJ2K.j2k.util.ThreadPool.-ctor.html#CSJ2K_j2k_util_ThreadPool__ctor_System_Int32_System_Int32_System_String_">ThreadPool(int, int, string)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_util_ThreadPool_CONCURRENCY_PROP_NAME" data-uid="CSJ2K.j2k.util.ThreadPool.CONCURRENCY_PROP_NAME">
          <a class="xref" href="CSJ2K.j2k.util.ThreadPool.CONCURRENCY_PROP_NAME.html">CONCURRENCY_PROP_NAME</a>
        </td>
        <td class="markdown level1 summary"><p>The name of the property that sets the concurrency level:
jj2000.j2k.util.ThreadPool.concurrency</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_util_ThreadPool_Size" data-uid="CSJ2K.j2k.util.ThreadPool.Size">
          <a class="xref" href="CSJ2K.j2k.util.ThreadPool.Size.html#CSJ2K_j2k_util_ThreadPool_Size">Size</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the size of the pool. That is the number of threads in this
pool (idle + busy).</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_util_ThreadPool_checkTargetErrors" data-uid="CSJ2K.j2k.util.ThreadPool.checkTargetErrors">
          <a class="xref" href="CSJ2K.j2k.util.ThreadPool.checkTargetErrors.html#CSJ2K_j2k_util_ThreadPool_checkTargetErrors">checkTargetErrors()</a>
        </td>
        <td class="markdown level1 summary"><p>Checks that no error or runtime exception in any target have occurred
so far. If an error or runtime exception has occurred in a target's run
method they are thrown by this method.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_util_ThreadPool_clearTargetErrors" data-uid="CSJ2K.j2k.util.ThreadPool.clearTargetErrors">
          <a class="xref" href="CSJ2K.j2k.util.ThreadPool.clearTargetErrors.html#CSJ2K_j2k_util_ThreadPool_clearTargetErrors">clearTargetErrors()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_util_ThreadPool_runTarget_IThreadRunnable_System_Object_" data-uid="CSJ2K.j2k.util.ThreadPool.runTarget(IThreadRunnable,System.Object)">
          <a class="xref" href="CSJ2K.j2k.util.ThreadPool.runTarget.html#CSJ2K_j2k_util_ThreadPool_runTarget_IThreadRunnable_System_Object_">runTarget(IThreadRunnable, object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_util_ThreadPool_runTarget_IThreadRunnable_System_Object_System_Boolean_" data-uid="CSJ2K.j2k.util.ThreadPool.runTarget(IThreadRunnable,System.Object,System.Boolean)">
          <a class="xref" href="CSJ2K.j2k.util.ThreadPool.runTarget.html#CSJ2K_j2k_util_ThreadPool_runTarget_IThreadRunnable_System_Object_System_Boolean_">runTarget(IThreadRunnable, object, bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_util_ThreadPool_runTarget_IThreadRunnable_System_Object_System_Boolean_System_Boolean_" data-uid="CSJ2K.j2k.util.ThreadPool.runTarget(IThreadRunnable,System.Object,System.Boolean,System.Boolean)">
          <a class="xref" href="CSJ2K.j2k.util.ThreadPool.runTarget.html#CSJ2K_j2k_util_ThreadPool_runTarget_IThreadRunnable_System_Object_System_Boolean_System_Boolean_">runTarget(IThreadRunnable, object, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Runs the run method of the specified target in an idle thread of this
pool. When the target's run method completes, the thread waiting on the
lock object is notified, if any. If there is currently no idle thread
and the asynchronous mode is not used the method will block until a
thread of the pool becomes idle or the calling thread is
interrupted. If the asynchronous mode is used then the method will not
block and will return false.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
