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

◆ wait_all() [1/3]

template<typename collection_t >
static bool xtd::threading::wait_handle::wait_all ( const collection_t &  wait_handles)
inlinestatic

Waits for all the elements in the specified collection to receive a signal.

Parameters
wait_handlesA xtd::threading::wait_handle collection containing the objects for which the current instance will wait. This array cannot contain multiple references to the same object.
Returns
true when every element in wait_handles has received a signal; otherwise the method never returns.
Exceptions
xtd::object_closed_exceptionthe to_signal and/or to_wait are invalid
xtd::argument_exceptionThe number of objects in wait_handles is greater than the system permits.
xtd::threading::abandoned_mutex_exceptionThe wait completed because a thread exited without releasing a mutex.