git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dedicated kthread interface and enablement of lrud auto-recycler
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
sched.h
diff --git
a/lunaix-os/includes/lunaix/sched.h
b/lunaix-os/includes/lunaix/sched.h
index 4264307dfa9f20fc8e29e61d047ec4cccbab27c9..94afa72173cd800d035ff85a2e5cf615d8ad2121 100644
(file)
--- 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();
void
cleanup_detached_threads();
+static inline struct scheduler*
+scheduler()
+{
+ extern struct scheduler sched_ctx;
+ return &sched_ctx;
+}
+
#endif /* __LUNAIX_SCHEDULER_H */
#endif /* __LUNAIX_SCHEDULER_H */