Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

cThreadLockRw Class Reference

Using read and write locks. More...

#include <thread.h>

List of all members.

Public Member Functions

virtual ~cThreadLockRw ()
 Destructor.
virtual void ReadLock ()
 Set Readlock.
virtual void ReadUnlock ()
 Unset Readlock.
virtual bool TryReadLock ()
 Is read lock possible.
virtual void WriteLock ()
 Set WriteLock.
virtual void WriteUnlock ()
 Unset WriteLock.
virtual bool TryWriteLock ()
 Test if WriteLock is possible.
bool CheckLock ()
 Check Write lock.

Protected Attributes

pthread_rwlock_t m_rwlock
 holding the read/write lock


Detailed Description

Using read and write locks.


Member Function Documentation

bool cThreadLockRw::CheckLock  ) 
 

Check Write lock.

Returns:
success

bool cThreadLockRw::TryReadLock  )  [virtual]
 

Is read lock possible.

Returns:
true or false

bool cThreadLockRw::TryWriteLock  )  [virtual]
 

Test if WriteLock is possible.

Returns:
success


The documentation for this class was generated from the following files:
Generated on Mon Apr 26 14:38:54 2010 for New Simulator by  doxygen 1.4.4