2012-03-29 17:21:32 -05:00
|
|
|
#include "rust_sched_launcher.h"
|
|
|
|
#include "rust_scheduler.h"
|
|
|
|
|
|
|
|
const size_t SCHED_STACK_SIZE = 1024*100;
|
|
|
|
|
|
|
|
rust_sched_launcher::rust_sched_launcher(rust_scheduler *sched,
|
|
|
|
rust_srv *srv, int id)
|
2012-04-01 00:00:08 -05:00
|
|
|
: kernel(sched->kernel),
|
2012-03-30 19:10:02 -05:00
|
|
|
sched_loop(sched, srv, id),
|
|
|
|
driver(&sched_loop) {
|
2012-03-29 17:21:32 -05:00
|
|
|
}
|
2012-04-01 00:00:08 -05:00
|
|
|
|
|
|
|
rust_thread_sched_launcher::rust_thread_sched_launcher(rust_scheduler *sched,
|
2012-04-01 02:13:59 -05:00
|
|
|
rust_srv *srv, int id)
|
2012-04-01 00:00:08 -05:00
|
|
|
: rust_sched_launcher(sched, srv, id),
|
|
|
|
rust_thread(SCHED_STACK_SIZE) {
|
|
|
|
}
|
|
|
|
|
2012-04-01 18:21:48 -05:00
|
|
|
rust_manual_sched_launcher::rust_manual_sched_launcher(rust_scheduler *sched,
|
|
|
|
rust_srv *srv, int id)
|
|
|
|
: rust_sched_launcher(sched, srv, id) {
|
|
|
|
}
|