vdr 2.6.9
|
#include <thread.h>
Public Member Functions | |
cRwLock (bool PreferWriter=false) | |
~cRwLock () | |
bool | Lock (bool Write, int TimeoutMs=0) |
void | Unlock (void) |
Private Attributes | |
pthread_rwlock_t | rwlock |
int | locked |
tThreadId | writeLockThreadId |
cRwLock::cRwLock | ( | bool | PreferWriter = false | ) |
Definition at line 157 of file thread.c.
References locked, rwlock, and writeLockThreadId.
bool cRwLock::Lock | ( | bool | Write, |
int | TimeoutMs = 0 ) |
Definition at line 172 of file thread.c.
References GetAbsTime(), locked, rwlock, cThread::ThreadId(), and writeLockThreadId.
Referenced by cStateLock::Lock().
void cRwLock::Unlock | ( | void | ) |
Definition at line 194 of file thread.c.
References locked, rwlock, cThread::ThreadId(), and writeLockThreadId.
Referenced by cStateLock::Lock(), and cStateLock::Unlock().
|
private |
|
private |
|
private |