SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
|
Thread-safe queue for inter-task communication. Works like std::queue. More...
#include <sensesp/system/task_queue_producer.h>
Public Member Functions | |
SafeQueue () | |
void | push (const T &value) |
bool | pop (T &value, unsigned int max_duration_ms) |
bool | empty () |
size_t | size () |
Protected Attributes | |
SemaphoreHandle_t | queue_semaphore_ |
SemaphoreHandle_t | write_lock_ |
Thread-safe queue for inter-task communication. Works like std::queue.
T |
Definition at line 19 of file task_queue_producer.h.
|
inline |
Definition at line 21 of file task_queue_producer.h.
|
inline |
Definition at line 46 of file task_queue_producer.h.
|
inline |
Definition at line 34 of file task_queue_producer.h.
|
inline |
Definition at line 27 of file task_queue_producer.h.
|
inline |
Definition at line 53 of file task_queue_producer.h.
|
protected |
Definition at line 61 of file task_queue_producer.h.
|
protected |
Definition at line 62 of file task_queue_producer.h.