-
Notifications
You must be signed in to change notification settings - Fork 16
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 TimeoutOption;The default maximum amount of time a work in the pool is allowed to run before it is terminated.
TimeoutOption DefaultWorkTimeoutOption;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, LIFO or Deque.
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 WorkItemBase.
Func<IStealablePriorityCollection<WorkItemBase>> CustomQueueFactory;The type of work ID to be used.
WorkIDType WorkIDType;Reject policy.
RejectOption RejectOption;If true, the thread pool will only steal one work at a time.
bool StealOneWorkOnly;Indicates whether collection of usage metrics is enabled, including counts and durations.
bool EnableStatisticsCollection;enum QueueType { FIFO, LIFO, Deque };
enum WorkIDType { LongIncrement, Guid };- Sync | Async
- Pool Control | Work Control
- Divide And Conquer
- Thread Pool Sizing
- Work Callback | Default Callback
- Rejection Policy
- 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 | Deque | Custom)
Core
Results
Options