|Number of threads to increment pool by. |
|Time limit in seconds for idle threads. |
|Number of threads the pool will start with. |
|Maximum number of threads a pool may have. |
|Function to call when a thread ends. |
|Function to call when a thread starts. |
Number of threads to increment pool by.
If a task is added into a pool and no idle thread is available to activate, then the pool can automatically grow by the given amount.
Zero is a perfectly valid value to give here if you want to control threadpool growth yourself via your listener.
Number of threads the pool will start with.
When the threadpool is allocated, it will immediately size itself to have this number of threads in it.
Zero is a valid value if the threadpool should start without any threads allocated.
Maximum number of threads a pool may have.
When the threadpool's size increases, it can never increase beyond this number of threads.
Zero is a valid value if the threadpool does not have a maximum size.
Function to call when a thread ends.
This is useful if there is common cleanup to execute when a thread completes
Referenced by worker_start().