PSafeLockReadOnly Class Reference

#include <safecoll.h>

List of all members.

Public Member Functions

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

Protected Attributes

PSafeObjectsafeObject
PBoolean locked


Detailed Description

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


Constructor & Destructor Documentation

PSafeLockReadOnly::PSafeLockReadOnly ( const PSafeObject object  ) 

PSafeLockReadOnly::~PSafeLockReadOnly (  ) 


Member Function Documentation

PBoolean PSafeLockReadOnly::IsLocked (  )  const [inline]

PBoolean PSafeLockReadOnly::Lock (  ) 

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

void PSafeLockReadOnly::Unlock (  ) 


Member Data Documentation

PBoolean PSafeLockReadOnly::locked [protected]

PSafeObject& PSafeLockReadOnly::safeObject [protected]


The documentation for this class was generated from the following file:
Generated on Thu May 27 01:36:49 2010 for PTLib by  doxygen 1.4.7