System::Threading::WaitHandle::WaitAll método

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

Espera a que todos los handles se activen.

static bool System::Threading::WaitHandle::WaitAll(const System::ArrayPtr<System::SharedPtr<WaitHandle>> &waitHandles)
ParámetroTipoDescripción
waitHandlesconst System::ArrayPtr<System::SharedPtr<WaitHandle>>&Manejadores a esperar.

ReturnValue

Verdadero cuando cada elemento en waitHandles ha recibido una señal; de lo contrario el método nunca devuelve.

Ver también

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

Información RTTI.

static bool System::Threading::WaitHandle::WaitAll(const System::ArrayPtr<System::SharedPtr<WaitHandle>> &waitHandles, int millisecondsTimeout)
ParámetroTipoDescripción
waitHandlesconst System::ArrayPtr<System::SharedPtr<WaitHandle>>&Manejadores a esperar.
millisecondsTimeoutintTimeout para esperar, en milisegundos; -1 significa espera infinita, 0 significa comprobar y devolver, los valores positivos son tiempos de espera.

ReturnValue

Verdadero si todos los manejadores se activaron, falso si se superó el tiempo de espera.

Observaciones

Espera a que todos los handles se activen.

Ver también

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

Espera a que todos los handles se activen.

static bool System::Threading::WaitHandle::WaitAll(const System::ArrayPtr<System::SharedPtr<WaitHandle>> &waitHandles, TimeSpan timeout)
ParámetroTipoDescripción
waitHandlesconst System::ArrayPtr<System::SharedPtr<WaitHandle>>&Manejadores a esperar.
timeoutTimeSpanUn System::TimeSpan que representa el número de milisegundos a esperar, o un System::TimeSpan que representa -1 milisegundos para esperar indefinidamente.

ReturnValue

Verdadero si todos los manejadores se activaron, falso si se superó el tiempo de espera.

Ver también