UnnamedOS
schedule.h
Go to the documentation of this file.
1 
7 #ifndef TASKS_SCHEDULE_H
8 #define TASKS_SCHEDULE_H
9 
10 #include <stdint.h>
11 #include <interrupts/isr.h>
12 #include <tasks/task.h>
13 
19 
20 #endif
21 
task_pid_t schedule_get_current_task()
Returns the current task&#39;s PID.
Definition: schedule.c:74
cpu_state_t * schedule(cpu_state_t *cpu)
Returns the next task to run.
Definition: schedule.c:26
void schedule_finalize_tasks()
Destroys tasks marked for removal.
Definition: schedule.c:87
The CPU&#39;s state when an interrupt occurs.
Definition: isr.h:58
task_pid_t schedule_get_next_task()
Returns the next running task&#39;s PID.
Definition: schedule.c:82
uint32_t task_pid_t
unique process ID
Definition: task.h:17
cpu_state_t * schedule_switch_task(task_pid_t next_task)
Switches to a given task.
Definition: schedule.c:47