From c2ed9b5daf19b86823b27a06799d7d43d476f654 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 5 Aug 2001 12:23:24 +0200 Subject: New ringbuffer for frames --- thread.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 63f104a3..bfc8aab1 100644 --- a/thread.c +++ b/thread.c @@ -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 ---------------------------------------------------------------- -- cgit v1.2.3