PSafeLockReadOnly Class Reference

#include <safecoll.h>

List of all members.

Public Member Functions

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

Protected Attributes

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

BOOL PSafeLockReadOnly::IsLocked (  )  const [inline]

References locked.

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

References locked.

void PSafeLockReadOnly::Unlock (  ) 

Member Data Documentation

BOOL PSafeLockReadOnly::locked [protected]

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


The documentation for this class was generated from the following file:

Generated on Sun Sep 6 03:50:37 2009 for PWLib by  doxygen 1.6.1