PTLib  Version 2.18.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PSafeLockReadOnly Class Reference

Lock a PSafeObject for read only and automatically unlock it when go out of scope. More...

#include <safecoll.h>

Inheritance diagram for PSafeLockReadOnly:
Collaboration diagram for PSafeLockReadOnly:

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
PSafeObjectm_safeObject
 
PDebugLocation m_location
 
LockFn m_lock
 
UnlockFn m_unlock
 
bool m_locked
 

Detailed Description

Lock a PSafeObject for read only and automatically unlock it when go out of scope.

Constructor & Destructor Documentation

PSafeLockReadOnly::PSafeLockReadOnly ( const PSafeObject object)
inline

The documentation for this class was generated from the following file: