summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-12-22 13:29:24 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2003-12-22 13:29:24 +0100
commit7ff59171e3f907a5584b72f0f8588ed65f22c0bd (patch)
tree801b1b65840c50a4f1d8abea806fa5c180051df1 /thread.h
parent84b99ea81095f421ec049dd6b5bd5f0f2fe679c1 (diff)
downloadvdr-7ff59171e3f907a5584b72f0f8588ed65f22c0bd.tar.gz
vdr-7ff59171e3f907a5584b72f0f8588ed65f22c0bd.tar.bz2
Changed section handling; replaced 'libdtv' with 'libsi'
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/thread.h b/thread.h
index fc60588c..124a930e 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.18 2003/10/18 12:56:20 kls Exp $
+ * $Id: thread.h 1.19 2003/12/21 15:44:31 kls Exp $
*/
#ifndef __THREAD_H
@@ -28,6 +28,16 @@ public:
//void Signal(void);
};
+class cRWlock {
+private:
+ pthread_rwlock_t rwlock;
+public:
+ cRWlock(bool PreferWriter = false);
+ ~cRWlock();
+ bool Lock(bool Write, int TimeoutMs = 0);
+ void Unlock(void);
+ };
+
class cMutex {
friend class cCondVar;
private: