Loading...
Searching...
No Matches
async_context_threadsafe_background Struct Reference

Internal state for an async_context_threadsafe_background instance. More...

#include <async_context_threadsafe_background.h>

Data Fields

async_context_t core
 Base async_context structure; must be first.
alarm_pool_t * alarm_pool
 Alarm pool used for scheduling; must be on the same core as core_num.
absolute_time_t last_set_alarm_time
 The time at which the alarm was most recently set for.
recursive_mutex_t lock_mutex
 Recursive mutex protecting access to the context.
semaphore_t work_needed_sem
 Semaphore signalled when work is pending.
volatile alarm_id_t alarm_id
 ID of the currently active alarm, or 0 if none.
uint8_t low_priority_irq_num
 IRQ number of the low-priority IRQ used to process work.
volatile bool alarm_pending
 True if an alarm is currently pending.

Detailed Description

Internal state for an async_context_threadsafe_background instance.

Holds all runtime state for the threadsafe background async context implementation. Users should treat this as an opaque type and not access fields directly.


The documentation for this struct was generated from the following file: