summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
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: