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

◆ join_all() [6/6]

template<typename collection_t >
static bool xtd::threading::thread::join_all ( const collection_t &  threads,
const time_span timeout 
)
inlinestatic

Blocks the calling thread until all specified joinable threads collection terminate or the specified time elapses, while continuing.

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.
Exceptions
xtd::threading::thread_state_exceptionThe caller attempted to join a thread that is in the xtd::threading::thread_state::unstarted state.
Remarks
If one or more threads are not joinable, they will be skipped.