[]
        
(Showing Draft Content)

CSJ2K.j2k.util.ThreadPool

ThreadPool Class

Inheritance
ThreadPool
Namespace: CSJ2K.j2k.util
Assembly: C1.WPF.PdfViewer.4.6.2.dll
Syntax
public class ThreadPool

Constructors

Name Description
ThreadPool(int, int, string)

Fields

Name Description
CONCURRENCY_PROP_NAME

The name of the property that sets the concurrency level: jj2000.j2k.util.ThreadPool.concurrency

Properties

Name Description
Size

Returns the size of the pool. That is the number of threads in this pool (idle + busy).

Methods

Name Description
checkTargetErrors()

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.

clearTargetErrors()
runTarget(IThreadRunnable, object)
runTarget(IThreadRunnable, object, bool)
runTarget(IThreadRunnable, object, bool, bool)

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.