rt: Make rust_sched_launcher hide it's thread implementation

This commit is contained in:
Brian Anderson 2012-03-31 21:44:06 -07:00
parent 2d8ef7387e
commit a17097a57b
3 changed files with 5 additions and 10 deletions

View file

@ -10,8 +10,3 @@ rust_sched_launcher::rust_sched_launcher(rust_scheduler *sched,
sched_loop(sched, srv, id),
driver(&sched_loop) {
}
void
rust_sched_launcher::run() {
driver.start_main_loop();
}

View file

@ -7,7 +7,7 @@
class rust_sched_launcher
: public kernel_owned<rust_sched_launcher>,
public rust_thread {
private rust_thread {
public:
rust_kernel *kernel;
@ -18,7 +18,9 @@ private:
public:
rust_sched_launcher(rust_scheduler *sched, rust_srv *srv, int id);
virtual void run();
void start() { rust_thread::start(); }
void run() { driver.start_main_loop(); }
void join() { rust_thread::join(); }
rust_sched_loop *get_loop() { return &sched_loop; }
};

View file

@ -20,9 +20,7 @@ class rust_thread {
void start();
virtual void run() {
return;
}
virtual void run() = 0;
void join();
void detach();