System::Threading::WaitHandle::WaitAll method

WaitHandle::WaitAll(const System::ArrayPtr<System::SharedPtr<WaitHandle>>&, int) method

RTTI information.

static bool System::Threading::WaitHandle::WaitAll(const System::ArrayPtr<System::SharedPtr<WaitHandle>> &waitHandles, int millisecondsTimeout)
ParameterTypeDescription
waitHandlesconst System::ArrayPtr<System::SharedPtr<WaitHandle>>&Handles to wait for.
millisecondsTimeoutintTimeout to wait for, in milliseconds; -1 means infinite waiting, 0 means check-and-return, positive values are timeouts.

ReturnValue

True if all handles fired, false if timeout exceeded.

Remarks

Waits for all handles to fire.

See Also

WaitHandle::WaitAll(const System::ArrayPtr<System::SharedPtr<WaitHandle>>&, TimeSpan) method

Waits for all handles to fire.

static bool System::Threading::WaitHandle::WaitAll(const System::ArrayPtr<System::SharedPtr<WaitHandle>> &waitHandles, TimeSpan timeout)
ParameterTypeDescription
waitHandlesconst System::ArrayPtr<System::SharedPtr<WaitHandle>>&Handles to wait for.
timeoutTimeSpanA System::TimeSpan that represents the number of milliseconds to wait, or a System::TimeSpan that represents -1 milliseconds to wait indefinitely.

ReturnValue

True if all handles fired, false if timeout exceeded.

See Also

WaitHandle::WaitAll(const System::ArrayPtr<System::SharedPtr<WaitHandle>>&) method

Waits for all handles to fire.

static bool System::Threading::WaitHandle::WaitAll(const System::ArrayPtr<System::SharedPtr<WaitHandle>> &waitHandles)
ParameterTypeDescription
waitHandlesconst System::ArrayPtr<System::SharedPtr<WaitHandle>>&Handles to wait for.

ReturnValue

True when every element in waitHandles has received a signal; otherwise the method never returns.

See Also