summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-08-03 14:18:08 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-08-03 14:18:08 +0200
commitbff17fb1d0e39583e44ba93ea214d7434ecef2ce (patch)
treedf3c64f93c4a572feca8de742f2300bfa0f687ee /thread.h
parent1962940c39c1951bd107f63d2e071df58ba0b125 (diff)
downloadvdr-bff17fb1d0e39583e44ba93ea214d7434ecef2ce.tar.gz
vdr-bff17fb1d0e39583e44ba93ea214d7434ecef2ce.tar.bz2
Added support for replaying DVDs
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/thread.h b/thread.h
index bf9804d3..ff4c8304 100644
--- a/thread.h
+++ b/thread.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: thread.h 1.6 2001/06/27 11:22:04 kls Exp $
+ * $Id: thread.h 1.7 2001/08/02 13:48:48 kls Exp $
*/
#ifndef __THREAD_H
@@ -13,7 +13,22 @@
#include <pthread.h>
#include <sys/types.h>
+class cMutex;
+
+class cCondVar {
+private:
+ pthread_cond_t cond;
+public:
+ cCondVar(void);
+ ~cCondVar();
+ bool Wait(cMutex &_mutex);
+ //bool TimedWait(cMutex &_mutex, unsigned long tmout);
+ void Broadcast(void);
+ void Signal(void);
+ };
+
class cMutex {
+ friend class cCondVar;
private:
pthread_mutex_t mutex;
pid_t lockingPid;