rust/src/rt/rust_sched_launcher.cpp
Brian Anderson 243790836a rt: Rename rust_task_thread to rust_sched_loop
This class no longer represents a thread; it just schedules tasks.
2012-03-31 19:51:29 -07:00

17 lines
407 B
C++

#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)
: rust_thread(SCHED_STACK_SIZE),
kernel(sched->kernel),
sched_loop(sched, srv, id) {
}
void
rust_sched_launcher::run() {
sched_loop.start_main_loop();
}