Removed the WaitForPut/WaitForGet stuff from cRingBuffer

This commit is contained in:
Klaus Schmidinger
2003-05-11 10:30:27 +02:00
parent d067e5eda4
commit e3e21837d0
4 changed files with 9 additions and 44 deletions

View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: ringbuffer.h 1.10 2003/04/27 09:55:08 kls Exp $
* $Id: ringbuffer.h 1.11 2003/05/11 09:48:23 kls Exp $
*/
#ifndef __RINGBUFFER_H
@@ -16,17 +16,11 @@
class cRingBuffer {
private:
cMutex mutex;
cCondVar readyForPut, readyForGet;
cMutex putMutex, getMutex;
int size;
protected:
int maxFill;//XXX
int lastPercent;
bool statistics;//XXX
void WaitForPut(void);
void WaitForGet(void);
void EnablePut(void);
void EnableGet(void);
virtual void Clear(void) = 0;
virtual int Available(void) = 0;
int Free(void) { return size - Available() - 1; }