Struct SYN_Task¶
Task descriptor — binds a protothread to scheduler metadata. More...
#include <syn_task.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint32_t | delay_until |
| SYN_TaskFunc | func |
| const char * | name |
| uint8_t | priority |
| SYN_PT | pt |
| uint8_t | state |
| void * | user_data |
| SYN_EventFlags * | wait_event |
| uint32_t | wait_mask |
Detailed Description¶
Typical size: ~28 bytes on a 32-bit target.
Public Attributes Documentation¶
variable delay_until¶
Tick deadline for PT_TASK_DELAY_MS
variable func¶
The task's protothread function
variable name¶
Human-readable name (for debug/logging)
variable priority¶
0 = highest priority
variable pt¶
Protothread continuation (2 bytes)
variable state¶
SYN_TaskState
variable user_data¶
Optional pointer to task-private state
variable wait_event¶
Event flags task blocks on (NULL if not blocking)
variable wait_mask¶
Bitmask of event flags to wait for
The documentation for this class was generated from the following file src/syntropic/sched/syn_task.h