Miosix
2.0alpha1
|
#include <queue.h>
Public Member Functions | |
DynUnsyncQueue (unsigned int elem) | |
bool | isEmpty () const |
bool | isFull () const |
unsigned int | size () const |
unsigned int | capacity () const |
bool | tryPut (const T &elem) |
bool | tryGet (T &elem) |
void | reset () |
~DynUnsyncQueue () | |
An unsynchronized circular buffer data structure with the storage dynamically allocated on the heap. Note that unlike Queue, this class is only a data structure and not a synchronization primitive. The synchronization between the thread and the IRQ (or the other thread) must be done by the caller.
|
inline |
Constructor
elem | number of elements of the circular buffer |
|
inline |
Destructor
|
inline |
|
inline |
|
inline |
|
inline |
Erase all elements in the queue
|
inline |