X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/b60166b327a9108b07e3069fa6568a451529ffd9..d0e3d2eb32f32869bb54b5724e19780c83fb592b:/lunaix-os/includes/lunaix/sched.h diff --git a/lunaix-os/includes/lunaix/sched.h b/lunaix-os/includes/lunaix/sched.h index c011adb..94afa72 100644 --- a/lunaix-os/includes/lunaix/sched.h +++ b/lunaix-os/includes/lunaix/sched.h @@ -28,13 +28,17 @@ sched_init(); void noret schedule(); -void -sched_pass(); - void noret 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 */