diff options
Diffstat (limited to 'src/kernel/task/sched.h')
-rw-r--r-- | src/kernel/task/sched.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/kernel/task/sched.h b/src/kernel/task/sched.h index 1432b02..590a810 100644 --- a/src/kernel/task/sched.h +++ b/src/kernel/task/sched.h @@ -3,7 +3,12 @@ #include "task.h" -void sched_enqueue(thread *t); +#define PRIORITIES 3 // we have 3 priority levels +#define TP_LOW 2 +#define TP_MED 1 +#define TP_HIGH 0 + +void sched_enqueue(thread *t, int priority); void sched_remove(thread *t); thread *sched_dequeue(); |