wclWaitableSyncObjectWaitAny(wclWaitableSyncObject) Method |
Waits until one or all of the specified objects are in the
signaled state.
Namespace: wclSyncAssembly: wclCommon (in wclCommon.dll) Version: 7.13.7.0 (7.13.7.0)
Syntaxpublic static uint WaitAny(
wclWaitableSyncObject[] Objects
)
Public Shared Function WaitAny (
Objects As wclWaitableSyncObject()
) As UInteger
public:
static unsigned int WaitAny(
array<wclWaitableSyncObject^>^ Objects
)
Parameters
- Objects wclWaitableSyncObject
- An array of waitable objects.
Return Value
UInt32 If the wait completed with success the returning value is a
signaled object index starting from
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
WAIT_ABANDONED_0. If the wait
failed the returning value is
WAIT_FAILED.
See Also