diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-05 12:23:24 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-05 12:23:24 +0200 |
commit | c2ed9b5daf19b86823b27a06799d7d43d476f654 (patch) | |
tree | e7c24b75e4cd2b181ebc9e88ad22bb888960c39d /thread.c | |
parent | 614113cdcb1ebb176891664426e9c0cc2bb63c9d (diff) | |
download | vdr-c2ed9b5daf19b86823b27a06799d7d43d476f654.tar.gz vdr-c2ed9b5daf19b86823b27a06799d7d43d476f654.tar.bz2 |
New ringbuffer for frames
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: thread.c 1.10 2001/08/02 13:48:45 kls Exp $ + * $Id: thread.c 1.11 2001/08/05 10:36:52 kls Exp $ */ #include "thread.h" @@ -26,15 +26,15 @@ cCondVar::~cCondVar() pthread_cond_destroy(&cond); } -bool cCondVar::Wait(cMutex &_mutex) +bool cCondVar::Wait(cMutex &Mutex) { - return pthread_cond_wait(&cond, &_mutex.mutex); + return pthread_cond_wait(&cond, &Mutex.mutex); } /* -bool cCondVar::TimedWait(cMutex &_mutex, unsigned long tmout) +bool cCondVar::TimedWait(cMutex &Mutex, unsigned long tmout) { - return pthread_cond_timedwait(&cond, &_mutex.mutex, tmout); + return pthread_cond_timedwait(&cond, &Mutex.mutex, tmout); } */ @@ -43,10 +43,12 @@ void cCondVar::Broadcast(void) pthread_cond_broadcast(&cond); } +/* void cCondVar::Signal(void) { pthread_cond_signal(&cond); } +*/ // --- cMutex ---------------------------------------------------------------- |