PtObjStateLockEntry is a class that you can use to get information about any lock that has been applied to an object. First, create a PtObjStateLockList, then pass it as a parameter to the object using PtObject::GetObjectInfo(). Once you have done this, the PtObjStateLockList contains a list of PtObjStateLockEntry items, each of which describes one active lock. PtObjStateLockEntry is derived from PtObjStateMaxLock. In addition to the lock information provided by its base class, it also reports the depth mode and the lock count for the lock.
Files to include | Class declaration | Base class |
poet.hxx | ptinfo.hxx | PtObjStateMaxLock |
constructor | PtObjStateLockEntry(); |
destructor | virtual ~PtObjStateLockEntry(); |
GetDepth | inline PtDepthMode GetDepth() const; |
GetLockCount | inline PtDWord GetLockCount() const; |
- inline PtDepthMode PtObjStateLockEntry::GetDepth() const
Returns the depth mode of the strongest lock that is active for the object.
- inline PtDWord PtObjStateLockEntry::GetLockCount() const
Returns the number of active locks for the object.
Copyright (c) 1996 POET Software, Inc. All rights reserved. Reproduction in whole or in part in any form or medium without the express permission of POET Software, Inc. is prohibited.