Click or drag to resize

WorkerPool Methods

The WorkerPool type exposes the following members.

Methods
  NameDescription
Public methodStatic memberEnsurePoolSize
Tries to ensure the pool contains numThreads for doing work. Returns the number of threads ensured, which may be lower due to a lower number of processors available (but won't be higher, even if another caller requested and was granted more threads). Only to be called while no work is underway.
Public methodStatic memberStartWork
Executes the work inside task with numThreads
Public methodStatic memberWaitForWorkDone
Waits until the tasks were executed
Top
See Also