2012-03-29 15:21:32 -07:00
|
|
|
#ifndef RUST_SCHED_LAUNCHER_H
|
|
|
|
#define RUST_SCHED_LAUNCHER_H
|
|
|
|
|
|
|
|
#include "rust_internal.h"
|
|
|
|
#include "sync/rust_thread.h"
|
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
#include <pthread.h>
|
|
|
|
#else
|
|
|
|
#include <windows.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class rust_sched_launcher
|
|
|
|
: public kernel_owned<rust_sched_launcher>,
|
|
|
|
public rust_thread {
|
|
|
|
public:
|
|
|
|
rust_kernel *kernel;
|
|
|
|
|
|
|
|
private:
|
2012-03-29 16:31:30 -07:00
|
|
|
rust_sched_loop sched_loop;
|
2012-03-29 15:21:32 -07:00
|
|
|
|
|
|
|
public:
|
|
|
|
rust_sched_launcher(rust_scheduler *sched, rust_srv *srv, int id);
|
|
|
|
|
|
|
|
virtual void run();
|
2012-03-29 16:31:30 -07:00
|
|
|
rust_sched_loop *get_loop() { return &sched_loop; }
|
2012-03-29 15:21:32 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RUST_SCHED_LAUNCHER_H
|