-
Notifications
You must be signed in to change notification settings - Fork 4
PowerPoolOption
The maximum number of threads that the thread pool can support.
int MaxThreads;
The option for destroying threads in the thread pool.
DestroyThreadOption DestroyThreadOption;
The total maximum amount of time that all works in the thread pool are permitted to run collectively before they are terminated.
TimeoutOption Timeout;
The default maximum amount of time a work in the pool is allowed to run before it is terminated.
TimeoutOption DefaultWorkTimeout;
After setting, it will be triggered regularly when the pool is in the running state.
RunningTimerOption RunningTimerOption;
The default callback function that is called when a work finishes execution.
Action<ExecuteResult<object>> DefaultCallback;
Indicates whether the pool should begin in a suspended state.
bool StartSuspended;
FIFO or LIFO.
QueueType QueueType;
Determines whether to clear the result storage when the pool starts.
bool ClearResultStorageWhenPoolStart;
Determines whether to clear the records of failed work when the pool starts.
bool ClearFailedWorkRecordWhenPoolStart;
A factory function that creates instances of IStealablePriorityCollection<T>
of type string
.
Func<IStealablePriorityCollection<string>> CustomQueueFactory;
enum QueueType { FIFO, LIFO };
- Pool Control | Work Control
- Thread Pool Sizing
- Work Callback | Default Callback
- Parallel Execution
- Work Priority | Thread Priority
- Error Handling
- Work Timeout | Cumulative Work Timeout
- Work Dependency
- Work Group
- Events
- Runtime Status
- Running Timer
- Queue Type (FIFO | LIFO | Custom)
- Load Balancing
- Lock-Free
Core
Results
Options