TaskPool
Description
- Derived from
-
Disposable abstract
The pool for running background tasks.
Public / Methods
BlockBegin
A thread may call this method in order to notify the TaskPool that it will perform a blocking system call.
If the calling thread is not managed by the TaskPool, the method silently returns.
For each call to BlockBegin, the BlockEnd method must be called exactly once.
BlockEnd
After calling the BlockBegin method, the thread must call this method in order to notify the TaskPool that the blocking system call has finished.
If the calling thread is not managed by the TaskPool, the method silently returns.
For each call to BlockBegin, the BlockEnd method must be called exactly once.
Public / Attributes
Parallelism
Maximum count of non-blocked background tasks being executed in parallel.
The default value is 0
.
- See also
Priority
The priority to use for newly spawned background task threads.
The default priority is ThreadPriority.Lower.