diff options
Diffstat (limited to 'thread.h')
-rw-r--r-- | thread.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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: |