PTLib  Version 2.10.4
PSafeLockReadWrite Class Reference

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

#include <safecoll.h>

List of all members.

Public Member Functions

 PSafeLockReadWrite (const PSafeObject &object)
 ~PSafeLockReadWrite ()
PBoolean Lock ()
void Unlock ()
PBoolean IsLocked () const
bool operator! () const

Protected Attributes

PSafeObjectsafeObject
PBoolean locked

Detailed Description

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


Constructor & Destructor Documentation


Member Function Documentation

References locked.

bool PSafeLockReadWrite::operator! ( ) const [inline]

References locked.


Member Data Documentation

Referenced by IsLocked(), and operator!().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines