|
LRAUV
revA
|
Thread-safe ring buffer for storing void pointers. More...
#include <RingBuffer.h>


Public Member Functions | |
| RingBufferVoid (const bool freeOnCleanup=true) | |
| virtual | ~RingBufferVoid () |
| bool | isEmpty () |
| void | freeAll () |
| void | push (void *item) |
| void * | pop () |
| void * | peek () |
Protected Attributes | |
| ListEntry< void * > * | start_ |
| ListEntry< void * > * | end_ |
| const bool | freeOnCleanup_ |
| Mutex | mutex_ |
Private Member Functions | |
| RingBufferVoid (const RingBufferVoid &old) | |
Thread-safe ring buffer for storing void pointers.
| RingBufferVoid::RingBufferVoid | ( | const bool | freeOnCleanup = true | ) |
|
virtual |
References end_, freeAll(), ListEntry< T >::getNext(), and start_.
|
private |
| void RingBufferVoid::freeAll | ( | ) |
References freeOnCleanup_, isEmpty(), and pop().
Referenced by ~RingBufferVoid().
| bool RingBufferVoid::isEmpty | ( | void | ) |
References start_.
Referenced by LogQueue::clear(), RingBuffer< LogEntry * >::deleteAll(), freeAll(), LogQueue::isEmpty(), peek(), and pop().
| void * RingBufferVoid::peek | ( | void | ) |
References ListEntry< T >::getItem(), isEmpty(), mutex_, and start_.
Referenced by RingBuffer< LogEntry * >::peek().
| void * RingBufferVoid::pop | ( | void | ) |
References end_, ListEntry< T >::getItem(), ListEntry< T >::getNext(), isEmpty(), mutex_, and start_.
Referenced by freeAll(), and RingBuffer< LogEntry * >::pop().
| void RingBufferVoid::push | ( | void * | item | ) |
References end_, ListEntry< T >::getNext(), mutex_, ListEntry< T >::setItem(), and start_.
Referenced by RingBuffer< LogEntry * >::push().
|
protected |
Referenced by pop(), push(), and ~RingBufferVoid().
|
protected |
Referenced by RingBuffer< LogEntry * >::deleteAll(), and freeAll().
|
protected |
Referenced by isEmpty(), peek(), pop(), push(), and ~RingBufferVoid().