Schedules tasks in the main loop using coroutines so that long running tasks, particularly relating to the UI, can yield execution in order to call the poll functions at a tighter interval.
9 lines
130 B
C
9 lines
130 B
C
#ifndef SCHEDULER_H
|
|
#define SCHEDULER_H
|
|
|
|
void scheduler_init(void);
|
|
void scheduler_run(void);
|
|
void scheduler_yield(void);
|
|
|
|
#endif
|