F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
13 #ifndef OS_PTHREADS_BUFFER_QUEUE_HPP
14 #define OS_PTHREADS_BUFFER_QUEUE_HPP
132 #endif // OS_PTHREADS_BUFFER_QUEUE_HPP
NATIVE_UINT_TYPE getDepth()
Get the queue depths.
uint8_t U8
8-bit unsigned integer
NATIVE_UINT_TYPE getCount()
Get the current number of items on the queue.
~BufferQueue()
BufferQueue deconstructor.
bool push(const U8 *buffer, NATIVE_UINT_TYPE size, NATIVE_INT_TYPE priority)
push an item onto the queue
A generic buffer queue data structure.
BufferQueue()
BufferQueue constructor.
NATIVE_UINT_TYPE getMaxCount()
Get the maximum number of items seen on the queue.
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
bool isEmpty()
check if the queue is empty
bool isFull()
check if the queue is full
NATIVE_UINT_TYPE getMsgSize()
Get the maximum message size.
bool create(NATIVE_UINT_TYPE depth, NATIVE_UINT_TYPE msgSize)
BufferQueue creation.
bool pop(U8 *buffer, NATIVE_UINT_TYPE &size, NATIVE_INT_TYPE &priority)
pop an item off the queue
Declares ISF basic types.
int NATIVE_INT_TYPE
native integer type declaration