|
PTLib
Version 2.18.8
|
Lock a PSafeObject for read only and automatically unlock it when go out of scope. More...
#include <safecoll.h>


Public Member Functions | |
| PSafeLockReadOnly (const PSafeObject &object) | |
Public Member Functions inherited from PSafeLockBase | |
| ~PSafeLockBase () | |
| bool | Lock () |
| void | Unlock () |
| bool | IsLocked () const |
| bool | operator! () const |
Additional Inherited Members | |
Protected Types inherited from PSafeLockBase | |
| typedef bool(PSafeObject::* | LockFn )(const PDebugLocation *location) const |
| typedef void(PSafeObject::* | UnlockFn )(const PDebugLocation *location) const |
Protected Member Functions inherited from PSafeLockBase | |
| PSafeLockBase (const PSafeObject &object, const PDebugLocation *location, LockFn lock, UnlockFn unlock) | |
Protected Attributes inherited from PSafeLockBase | |
| PSafeObject & | m_safeObject |
| PDebugLocation | m_location |
| LockFn | m_lock |
| UnlockFn | m_unlock |
| bool | m_locked |
Lock a PSafeObject for read only and automatically unlock it when go out of scope.
|
inline |