PSafeLockReadWrite Class Reference

#include <safecoll.h>

List of all members.

Public Member Functions

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

Protected Attributes

PSafeObjectsafeObject
BOOL 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  ) 

PSafeLockReadWrite::~PSafeLockReadWrite (  ) 


Member Function Documentation

BOOL PSafeLockReadWrite::Lock (  ) 

void PSafeLockReadWrite::Unlock (  ) 

BOOL PSafeLockReadWrite::IsLocked (  )  const [inline]

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


Member Data Documentation

PSafeObject& PSafeLockReadWrite::safeObject [protected]

BOOL PSafeLockReadWrite::locked [protected]


The documentation for this class was generated from the following file:
Generated on Fri Mar 7 06:25:06 2008 for PTLib by  doxygen 1.5.1