73
ThreadPool(const std::string& name, int minCapacity = 2, int maxCapacity = 16, int idleTime = 60);
74
81
/// Creates a thread pool with minCapacity threads.
75
82
/// If required, up to maxCapacity threads are created
76
83
/// a NoThreadAvailableException exception is thrown.
77
84
/// If a thread is running idle for more than idleTime seconds,
78
85
/// and more than minCapacity threads are running, the thread
82
89
/// Currently running threads will remain active