diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-12-22 13:29:24 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-12-22 13:29:24 +0100 |
commit | 7ff59171e3f907a5584b72f0f8588ed65f22c0bd (patch) | |
tree | 801b1b65840c50a4f1d8abea806fa5c180051df1 /thread.h | |
parent | 84b99ea81095f421ec049dd6b5bd5f0f2fe679c1 (diff) | |
download | vdr-7ff59171e3f907a5584b72f0f8588ed65f22c0bd.tar.gz vdr-7ff59171e3f907a5584b72f0f8588ed65f22c0bd.tar.bz2 |
Changed section handling; replaced 'libdtv' with 'libsi'
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: |