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

◆ get_available_threads()

static void xtd::threading::thread_pool::get_available_threads ( size_t &  worker_threads,
size_t &  completion_port_threads 
)
static

Retrieves the difference between the maximum number of thread pool threads returned by the GetMaxThreads method, and the number currently active.

Parameters
worker_threadsThe number of available worker threads
completion_port_threadsThe number of available asynchronous I/O threads.
Remarks
When xtd::threading::thread_pool::get_available_threads returns, the variable specified by worker_threads contains the number of additional worker threads that can be started, and the variable specified by completion_port_threads contains the number of additional asynchronous I/O threads that can be started.