PTLib
Version 2.18.8
|
Lock a PSafeObject for read/write and automatically unlock it when go out of scope. More...
#include <safecoll.h>
Public Member Functions | |
PSafeLockReadWrite (const PSafeObject &object) | |
![]() | |
~PSafeLockBase () | |
bool | Lock () |
void | Unlock () |
bool | IsLocked () const |
bool | operator! () const |
Additional Inherited Members | |
![]() | |
typedef bool(PSafeObject::* | LockFn )(const PDebugLocation *location) const |
typedef void(PSafeObject::* | UnlockFn )(const PDebugLocation *location) const |
![]() | |
PSafeLockBase (const PSafeObject &object, const PDebugLocation *location, LockFn lock, UnlockFn unlock) | |
![]() | |
PSafeObject & | m_safeObject |
PDebugLocation | m_location |
LockFn | m_lock |
UnlockFn | m_unlock |
bool | m_locked |
Lock a PSafeObject for read/write and automatically unlock it when go out of scope.
|
inline |