Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ssobjects::RWLock Class Reference

#include <threadutils.h>

List of all members.

Public Methods

int isLocked ()
int isRLocked ()
int isWLocked ()
 RWLock ()
 ~RWLock ()
void rlock ()
void wlock ()
void wunlock ()
void runlock ()

Protected Attributes

unsigned32 m_nReadersReading
unsigned32 m_nWriterWriting
pthread_mutex_t m_mutex
pthread_cond_t m_condLockFree


Constructor & Destructor Documentation

ssobjects::RWLock::RWLock ( )
 

ssobjects::RWLock::~RWLock ( )
 


Member Function Documentation

int ssobjects::RWLock::isLocked ( ) [inline]
 

int ssobjects::RWLock::isRLocked ( ) [inline]
 

int ssobjects::RWLock::isWLocked ( ) [inline]
 

void ssobjects::RWLock::rlock ( )
 

void ssobjects::RWLock::runlock ( )
 

void ssobjects::RWLock::wlock ( )
 

void ssobjects::RWLock::wunlock ( )
 


Member Data Documentation

pthread_cond_t ssobjects::RWLock::m_condLockFree [protected]
 

pthread_mutex_t ssobjects::RWLock::m_mutex [protected]
 

unsigned32 ssobjects::RWLock::m_nReadersReading [protected]
 

unsigned32 ssobjects::RWLock::m_nWriterWriting [protected]
 


The documentation for this class was generated from the following files:
Generated at Tue Sep 25 00:26:37 2001 for SimpleServerObjects by doxygen1.2.7 written by Dimitri van Heesch, © 1997-2001