Freigeben über


CMultiLock::CMultiLock

Constructs a CMultiLock object.

CMultiLock(
   CSyncObject* ppObjects[ ],
   DWORD dwCount,
   BOOL bInitialLock = FALSE 
);

Parameters

  • ppObjects
    Array of pointers to the synchronization objects to be waited on. Cannot be NULL.

  • dwCount
    Number of objects in ppObjects. Must be greater than 0.

  • bInitialLock
    Specifies whether to initially attempt to access any of the supplied objects.

Remarks

This function is called after creating the array of synchronization objects to be waited on. It is usually called from within the thread that must wait for one of the synchronization objects to become available.

Requirements

Header: afxmt.h

See Also

Concepts

CMultiLock Class

CMultiLock Members

Hierarchy Chart