Internal state for an async_context_freertos instance. More...
#include <async_context_freertos.h>
Data Fields | |
| async_context_t | core |
| Base async_context structure (must be first). | |
| SemaphoreHandle_t | lock_mutex |
| Mutex used to serialise access to the context. | |
| SemaphoreHandle_t | work_needed_sem |
| Semaphore signalled when work is pending. | |
| SemaphoreHandle_t | task_complete_sem |
| Semaphore signalled when the task has exited. | |
| TimerHandle_t | timer_handle |
| FreeRTOS timer used to schedule time-based work. | |
| TaskHandle_t | task_handle |
| Handle of the worker task. | |
| uint8_t | nesting |
| Lock nesting depth. | |
| volatile bool | task_should_exit |
| Set to true to request the worker task to exit. | |
Internal state for an async_context_freertos instance.
Holds all runtime state for an async_context backed by a dedicated FreeRTOS task. Users should treat this as an opaque type and initialise it via async_context_freertos_init() or async_context_freertos_init_with_defaults().