|
SensESP 3.3.0
Universal Signal K sensor toolkit ESP32
|
Thread-safe queue for inter-task communication. More...
#include <sensesp/system/task_queue_producer.h>
Public Member Functions | |
| SafeQueue (size_t max_size=10) | |
| SafeQueue (const SafeQueue &)=delete | |
| SafeQueue & | operator= (const SafeQueue &)=delete |
| SafeQueue (SafeQueue &&)=delete | |
| SafeQueue & | operator= (SafeQueue &&)=delete |
| void | push (const T &value) |
| bool | pop (T &value, unsigned int max_duration_ms) |
| bool | empty () |
| size_t | size () |
Thread-safe queue for inter-task communication.
Uses a statically allocated FreeRTOS mutex (no heap allocation) to avoid corruption from heap fragmentation or adjacent stack overflows.
Instances must outlive all tasks that access them. Destroying a SafeQueue while another task is blocked on it is undefined behavior.
| T |
Definition at line 26 of file task_queue_producer.h.
|
inline |
|
delete |
|
delete |
|
inline |
Definition at line 65 of file task_queue_producer.h.
|
delete |
|
delete |
|
inline |
Definition at line 52 of file task_queue_producer.h.
|
inline |
Definition at line 38 of file task_queue_producer.h.
|
inline |
Definition at line 74 of file task_queue_producer.h.