#include <pthread_rwlock.h>
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 |
Definition at line 3 of file pthread_rwlock.h.
| 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);}
| 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] |
pthread_rwlock_t PThreadRWLock::rwlock [private] |
Definition at line 15 of file pthread_rwlock.h.
Referenced by enter_read(), enter_write(), leave_read(), leave_write(), PThreadRWLock(), and ~PThreadRWLock().
1.5.5