WiFi Framework C++ Edition

◆ WaitAny() [2/2]

static unsigned long WaitAny ( const unsigned long Count,
CwclWaitableSyncObject **const Objects,
const unsigned long Timeout )
static

Waits until one of the specified objects are in the signaled state or the time-out interval elapses.

Parameters
CountA number of the waitable objects in the objects array.
ObjectsAn array of waitable objects.
TimeoutThe wait timeout value.
Returns
If the wait completed with success the returning value is a signaled object index starting from WCL_WAIT_OBJECT_0. If the wait operation completed with success but one of the waitable object is a mutex and the thread that owned that mutex has exited without releasing the mutex the returning value is a mutex index starting from WCL_WAIT_ABANDONED_0. If the time-out elapsed the returning value is WCL_WAIT_TIMEOUT. If the wait failed the returning value is WCL_WAIT_FAILED.
See also
WCL_WAIT_OBJECT_0, WCL_WAIT_ABANDONED_0, WCL_WAIT_TIMEOUT, WCL_WAIT_FAILED, CwclWaitableSyncObject