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

◆ set_max_threads()

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

Sets the number of requests to the thread pool that can be active concurrently. All requests above that number remain queued until thread pool threads become available.

Parameters
worker_threadsThe maximum number of worker threads in the thread pool.
completion_port_threadsThe maximum number of asynchronous I/O threads in the thread pool.
Returns
true if the change is successful; otherwise, false.