|
PTLib
Version 2.14.3
|
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) | |
| ~PSafeLockReadOnly () | |
| PBoolean | Lock () |
| void | Unlock () |
| PBoolean | IsLocked () const |
| bool | operator! () const |
Protected Attributes | |
| PSafeObject & | safeObject |
| PBoolean | locked |
Lock a PSafeObject for read only and automatically unlock it when go out of scope.
| PSafeLockReadOnly::PSafeLockReadOnly | ( | const PSafeObject & | object | ) |
| PSafeLockReadOnly::~PSafeLockReadOnly | ( | ) |
| PBoolean PSafeLockReadOnly::Lock | ( | ) |
|
inline |
References locked.
| void PSafeLockReadOnly::Unlock | ( | ) |
|
protected |
Referenced by IsLocked(), and operator!().
|
protected |