|
PTLib
Version 2.10.11
|
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 | ( | ) |
|
inline |
| PBoolean PSafeLockReadOnly::Lock | ( | ) |
|
inline |
| void PSafeLockReadOnly::Unlock | ( | ) |
|
protected |
|
protected |