vdr
1.7.27
|
#include <ringbuffer.h>
Public Member Functions | |
cRingBufferFrame (int Size, bool Statistics=false) | |
virtual | ~cRingBufferFrame () |
virtual int | Available (void) |
virtual void | Clear (void) |
bool | Put (cFrame *Frame) |
cFrame * | Get (void) |
void | Drop (cFrame *Frame) |
cRingBufferFrame (int Size, bool Statistics=false) | |
virtual | ~cRingBufferFrame () |
virtual int | Available (void) |
virtual void | Clear (void) |
bool | Put (cFrame *Frame) |
cFrame * | Get (void) |
void | Drop (cFrame *Frame) |
Private Member Functions | |
void | Delete (cFrame *Frame) |
void | Lock (void) |
void | Unlock (void) |
void | Delete (cFrame *Frame) |
void | Lock (void) |
void | Unlock (void) |
Private Attributes | |
cMutex | mutex |
cFrame * | head |
int | currentFill |
Definition at line 127 of file include/vdr/ringbuffer.h.
cRingBufferFrame::cRingBufferFrame | ( | int | Size, |
bool | Statistics = false |
||
) |
Definition at line 402 of file ringbuffer.c.
References currentFill, and head.
cRingBufferFrame::~cRingBufferFrame | ( | ) | [virtual] |
Definition at line 409 of file ringbuffer.c.
References Clear().
cRingBufferFrame::cRingBufferFrame | ( | int | Size, |
bool | Statistics = false |
||
) |
virtual cRingBufferFrame::~cRingBufferFrame | ( | ) | [virtual] |
int cRingBufferFrame::Available | ( | void | ) | [virtual] |
Implements cRingBuffer.
Definition at line 480 of file ringbuffer.c.
References currentFill, Lock(), and Unlock().
virtual int cRingBufferFrame::Available | ( | void | ) | [virtual] |
Implements cRingBuffer.
void cRingBufferFrame::Clear | ( | void | ) | [virtual] |
Implements cRingBuffer.
Definition at line 414 of file ringbuffer.c.
References Drop(), cRingBuffer::EnableGet(), cRingBuffer::EnablePut(), Get(), Lock(), and Unlock().
Referenced by cDvbPlayer::Empty(), and ~cRingBufferFrame().
virtual void cRingBufferFrame::Clear | ( | void | ) | [virtual] |
Implements cRingBuffer.
void cRingBufferFrame::Delete | ( | cFrame * | Frame | ) | [private] |
void cRingBufferFrame::Delete | ( | cFrame * | Frame | ) | [private] |
Definition at line 453 of file ringbuffer.c.
References cFrame::Count(), and currentFill.
Referenced by Drop().
void cRingBufferFrame::Drop | ( | cFrame * | Frame | ) |
void cRingBufferFrame::Drop | ( | cFrame * | Frame | ) |
Definition at line 459 of file ringbuffer.c.
References Delete(), cRingBuffer::EnablePut(), esyslog, head, Lock(), cFrame::next, and Unlock().
Referenced by cDvbPlayer::Action(), and Clear().
cFrame * cRingBufferFrame::Get | ( | void | ) |
Definition at line 445 of file ringbuffer.c.
References head, Lock(), cFrame::next, and Unlock().
Referenced by cDvbPlayer::Action(), and Clear().
cFrame* cRingBufferFrame::Get | ( | void | ) |
void cRingBufferFrame::Lock | ( | void | ) | [inline, private] |
Definition at line 133 of file ringbuffer.h.
References cMutex::Lock(), and mutex.
void cRingBufferFrame::Lock | ( | void | ) | [inline, private] |
Definition at line 133 of file include/vdr/ringbuffer.h.
References cMutex::Lock(), and mutex.
Referenced by Available(), Clear(), Drop(), Get(), and Put().
bool cRingBufferFrame::Put | ( | cFrame * | Frame | ) |
bool cRingBufferFrame::Put | ( | cFrame * | Frame | ) |
Definition at line 425 of file ringbuffer.c.
References cFrame::Count(), currentFill, cRingBuffer::EnableGet(), cRingBuffer::Free(), head, Lock(), cFrame::next, and Unlock().
Referenced by cDvbPlayer::Action().
void cRingBufferFrame::Unlock | ( | void | ) | [inline, private] |
Definition at line 134 of file ringbuffer.h.
References mutex, and cMutex::Unlock().
void cRingBufferFrame::Unlock | ( | void | ) | [inline, private] |
Definition at line 134 of file include/vdr/ringbuffer.h.
References mutex, and cMutex::Unlock().
Referenced by Available(), Clear(), Drop(), Get(), and Put().
int cRingBufferFrame::currentFill [private] |
Definition at line 131 of file include/vdr/ringbuffer.h.
Referenced by Available(), cRingBufferFrame(), Delete(), and Put().
cFrame * cRingBufferFrame::head [private] |
Definition at line 130 of file include/vdr/ringbuffer.h.
Referenced by cRingBufferFrame(), Drop(), Get(), and Put().
cMutex cRingBufferFrame::mutex [private] |
Definition at line 129 of file include/vdr/ringbuffer.h.