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

◆ join_all() [3/3]

static bool xtd::threading::thread_pool::join_all ( const time_span timeout)
static

Join all resources and worker threads.

Parameters
timeoutA xtd::time_span set to the amount of time to wait for all threads to terminate.
Returns
true if all threads have terminated; false if all threads have not terminated after the amount of time specified by the timeout parameter has elapsed.
Remarks
If one or more threads are not joinable, they will be skipped.
You can use this method to ensure that all pending threads are closed, and that resources are also closed.