40#include "freertos-config.h"
52#ifndef CPP_FREERTOS_NO_EXCEPTIONS
56#ifdef CPP_FREERTOS_NO_CPP_STRINGS
57#error "FreeRTOS-Addons require C++ Strings if you are using exceptions"
67#ifndef CPP_FREERTOS_NO_EXCEPTIONS
79 sprintf(errorString,
"Queue Constructor Failed");
87 snprintf(errorString,
sizeof(errorString),
88 "Queue Constructor Failed %s", info);
95 virtual const char *
what()
const throw()
104 char errorString[80];
133 Queue(UBaseType_t maxItems, UBaseType_t itemSize);
146 virtual bool Enqueue(
const void *item);
156 virtual bool Enqueue(
const void *item, TickType_t Timeout);
166 bool Dequeue(
void *item, TickType_t Timeout = portMAX_DELAY);
177 bool Peek(
void *item, TickType_t Timeout = portMAX_DELAY);
187 virtual bool EnqueueFromISR(
const void *item, BaseType_t *pxHigherPriorityTaskWoken);
197 bool DequeueFromISR(
void *item, BaseType_t *pxHigherPriorityTaskWoken);
278 Deque(UBaseType_t maxItems, UBaseType_t itemSize);
290 bool EnqueueToFront(
void *item, TickType_t Timeout = portMAX_DELAY);
338 virtual bool Enqueue(
void *item);
348 virtual bool EnqueueFromISR(
void *item, BaseType_t *pxHigherPriorityTaskWoken);
Definition: queue.hpp:315
virtual bool Enqueue(void *item)
Definition: cqueue.cpp:202
virtual bool EnqueueFromISR(void *item, BaseType_t *pxHigherPriorityTaskWoken)
Definition: cqueue.cpp:209
Definition: queue.hpp:262
bool EnqueueToFrontFromISR(void *item, BaseType_t *pxHigherPriorityTaskWoken)
Definition: cqueue.cpp:186
bool EnqueueToFront(void *item, TickType_t Timeout=portMAX_DELAY)
Definition: cqueue.cpp:176
virtual const char * what() const
Definition: queue.hpp:95
QueueCreateException(const char *info)
Definition: queue.hpp:85
QueueCreateException()
Definition: queue.hpp:77
Definition: queue.hpp:117
virtual ~Queue()
Definition: cqueue.cpp:60
bool PeekFromISR(void *item)
Definition: cqueue.cpp:126
bool IsFull()
Definition: cqueue.cpp:144
void Flush()
Definition: cqueue.cpp:152
bool Peek(void *item, TickType_t Timeout=portMAX_DELAY)
Definition: cqueue.cpp:96
bool Dequeue(void *item, TickType_t Timeout=portMAX_DELAY)
Definition: cqueue.cpp:86
QueueHandle_t handle
Definition: queue.hpp:249
UBaseType_t NumSpacesLeft()
Definition: cqueue.cpp:164
bool DequeueFromISR(void *item, BaseType_t *pxHigherPriorityTaskWoken)
Definition: cqueue.cpp:116
virtual bool Enqueue(const void *item)
Definition: cqueue.cpp:66
UBaseType_t NumItems()
Definition: cqueue.cpp:158
virtual bool EnqueueFromISR(const void *item, BaseType_t *pxHigherPriorityTaskWoken)
Definition: cqueue.cpp:106
bool IsEmpty()
Definition: cqueue.cpp:136
Definition: condition_variable.hpp:57