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

◆ join_all() [2/3]

static bool xtd::threading::thread_pool::join_all ( int32  milliseconds_timeout)
static

Join all resources and worker threads.

Parameters
milliseconds_timeoutThe number of milliseconds 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.