TwclWaitableSyncObject.WaitAll(Cardinal,PwclWaitableSyncObject,Cardinal) Method
Waits until all of the specified objects are in the signaled state or the time-out interval elapses.
public class function WaitAll(const Count: Cardinal; const Objects: PwclWaitableSyncObject; const Timeout: Cardinal): Cardinal; overload;
Parameters
- Count
- Type: Cardinal
A number of the waitable objects in the objects array.
- Objects
- Type: PwclWaitableSyncObject
An array of waitable objects.
- Timeout
- Type: Cardinal
The wait timeout value.
Return Value
Type: Cardinal
If the wait completed with success the returning value is 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 WCL_WAIT_ABANDONED. If the time-out elapsed the returning value is WCL_WAIT_TIMEOUT. If the wait failed the returning value is WCL_WAIT_FAILED.