X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/ec4ff182252b6d7b3cb81f4fa783c5348a6c30fd..d0e3d2eb32f32869bb54b5724e19780c83fb592b:/lunaix-os/includes/lunaix/sched.h diff --git a/lunaix-os/includes/lunaix/sched.h b/lunaix-os/includes/lunaix/sched.h index 4264307..94afa72 100644 --- a/lunaix-os/includes/lunaix/sched.h +++ b/lunaix-os/includes/lunaix/sched.h @@ -34,4 +34,11 @@ run(struct thread* thread); void cleanup_detached_threads(); +static inline struct scheduler* +scheduler() +{ + extern struct scheduler sched_ctx; + return &sched_ctx; +} + #endif /* __LUNAIX_SCHEDULER_H */