Skip to content

Struct SYN_Task

ClassList > 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

uint32_t SYN_Task::delay_until;

Tick deadline for PT_TASK_DELAY_MS


variable func

SYN_TaskFunc SYN_Task::func;

The task's protothread function


variable name

const char* SYN_Task::name;

Human-readable name (for debug/logging)


variable priority

uint8_t SYN_Task::priority;

0 = highest priority


variable pt

SYN_PT SYN_Task::pt;

Protothread continuation (2 bytes)


variable state

uint8_t SYN_Task::state;

SYN_TaskState


variable user_data

void* SYN_Task::user_data;

Optional pointer to task-private state


variable wait_event

SYN_EventFlags* SYN_Task::wait_event;

Event flags task blocks on (NULL if not blocking)


variable wait_mask

uint32_t SYN_Task::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