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

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

#include <safecoll.h>

Inheritance diagram for PSafeLockReadWrite:
Collaboration diagram for PSafeLockReadWrite:

Public Member Functions

 PSafeLockReadWrite (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/write and automatically unlock it when go out of scope.

Constructor & Destructor Documentation

PSafeLockReadWrite::PSafeLockReadWrite ( const PSafeObject object)
inline

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