|
blu_os
|
#include "kernel/scheduler/scheduler.h"#include <kernel/thread/thread.h>#include <stddef.h>#include <stdint.h>#include "arch/x86/i386/tss/tss.h"Functions | |
| void | schedulerInit (void) |
| Initializes scheduler. | |
| void | schedulerAddThread (Thread *thread) |
| Adds thread to scheduler queue. | |
| void | schedulerYield (void) |
| void | schedulerExitCurrent (void) |
| void | threadTrampoline (void) |
| Thread * | getCurrentThread (void) |
| Returns current thread of scheduler. | |
Variables | |
| static Thread * | currentThread = NULL |
| static Thread * | queueHead = NULL |
| Thread * getCurrentThread | ( | void | ) |
Returns current thread of scheduler.
| void schedulerAddThread | ( | Thread * | thread | ) |
Adds thread to scheduler queue.
| void schedulerInit | ( | void | ) |
Initializes scheduler.