Runtime Status
ZjzMisaka edited this page Apr 19, 2024
·
1 revision
Many fields in the PowerPool class represent the current state of the thread pool, such as the number of active threads.
[Get only]
Thread pool is running or not
bool PoolRunning;
[Get only]
Thread pool is stopping (when user call Stop(...)) or not.
When thread pool idled, PoolStopping becomes false.
bool PoolStopping;
[Get only]
Idle worker count
int IdleWorkerCount;
[Get only]
Waiting work count
int WaitingWorkCount;
[Get only]
ID list of waiting works
IEnumerable<string> WaitingWorkList;
[Get only]
Failed work count
Will be reset to zero when the thread pool starts again
int FailedWorkCount;
[Get only]
ID list of failed works
Will be cleared when the thread pool starts again
IEnumerable<string> FailedWorkList;
[Get only]
Running worker count
int RunningWorkerCount;
[Get only]
Alive worker count
int AliveWorkerCount;
[Get only]
Long running worker count
int LongRunningWorkerCount;