mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-12-26 23:06:44 +01:00
Removed the WaitForPut/WaitForGet stuff from cRingBuffer
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user