PWLib  1.10.10
Public Member Functions | Protected Attributes
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


Member Function Documentation

BOOL PSafeLockReadWrite::IsLocked ( ) const [inline]

References locked.

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

References locked.


Member Data Documentation

BOOL PSafeLockReadWrite::locked [protected]

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


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