refactor: kernel space yield() for controllable, flexible task switching
[lunaix-os.git] / lunaix-os / includes / lunaix / sched.h
1 #ifndef __LUNAIX_SCHEDULER_H
2 #define __LUNAIX_SCHEDULER_H
3
4 #define SCHED_TIME_SLICE 300
5
6 struct scheduler
7 {
8     struct proc_info* _procs;
9     int procs_index;
10     unsigned int ptable_len;
11 };
12
13 void
14 sched_init();
15
16 void
17 schedule();
18
19 void
20 sched_yieldk();
21
22 #endif /* __LUNAIX_SCHEDULER_H */