xtd 0.2.0
Loading...
Searching...
No Matches

◆ set_min_threads()

static bool xtd::threading::thread_pool::set_min_threads ( size_t  worker_threads,
size_t  completion_port_threads 
)
static

Sets the number of idle threads the thread pool maintains in anticipation of new requests.

Parameters
worker_threadsThe new minimum number of idle worker threads to be maintained by the thread pool.
completion_port_threadsThe new minimum number of idle asynchronous I/O threads to be maintained by the thread pool.
Returns
true if the change is successful; otherwise, false.