PThreadRWLock Class Reference

#include <pthread_rwlock.h>

List of all members.

Public Member Functions

 PThreadRWLock ()
 ~PThreadRWLock ()
void enter_read (void)
void leave_read (void)
void enter_write (void)
void leave_write (void)

Static Public Member Functions

static const char * name ()

Private Attributes

pthread_rwlock_t rwlock


Detailed Description

Definition at line 3 of file pthread_rwlock.h.


Constructor & Destructor Documentation

PThreadRWLock::PThreadRWLock (  )  [inline]

Definition at line 6 of file pthread_rwlock.h.

References rwlock.

00006 {pthread_rwlock_init(&rwlock, NULL);}

PThreadRWLock::~PThreadRWLock (  )  [inline]

Definition at line 7 of file pthread_rwlock.h.

References rwlock.

00007 {pthread_rwlock_destroy(&rwlock);}


Member Function Documentation

void PThreadRWLock::enter_read ( void   )  [inline]

Definition at line 8 of file pthread_rwlock.h.

References rwlock.

00008 {pthread_rwlock_rdlock(&rwlock);}

void PThreadRWLock::leave_read ( void   )  [inline]

Definition at line 9 of file pthread_rwlock.h.

References rwlock.

00009 {pthread_rwlock_unlock(&rwlock);}

void PThreadRWLock::enter_write ( void   )  [inline]

Definition at line 10 of file pthread_rwlock.h.

References rwlock.

00010 {pthread_rwlock_wrlock(&rwlock);}

void PThreadRWLock::leave_write ( void   )  [inline]

Definition at line 11 of file pthread_rwlock.h.

References rwlock.

00011 {pthread_rwlock_unlock(&rwlock);}

static const char* PThreadRWLock::name (  )  [inline, static]

Definition at line 12 of file pthread_rwlock.h.

00012 { return "PThreadRWLock"; }


Member Data Documentation

pthread_rwlock_t PThreadRWLock::rwlock [private]


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

Generated on Wed Mar 19 14:59:59 2008 for rwlock by  doxygen 1.5.5