XLL+ Class Library (7.0)

CXlLock::CXlLock

Constructs a CXlLock object and optionally locks the target CXlLockable object

CXlLock(
   CXlLockable& lockable,
   bool initialLock = false
);

Parameters

lockable

A reference to the CXlLockable object to which this lock will be applied.

initialLock

If this parameter is true, then the lock will be applied immediately. If the target CXlLockable is already locked, then the thread calling this constructor will wait until it has been unlocked.

If initialLock is false, then the lock will not be applied until the Lock() method is called.

Remarks

This method constructs a CXlLock object.

Requirements

Header: xlpshared.h

See Also

CXlLock Class | CXlLock Methods