00001 /*** 00002 NAME 00003 sthread 00004 PURPOSE 00005 Derived from Basic_thread, this is our main thread class. It allows 00006 setting the priority and scheduling algorithm at start time. 00007 HISTORY 00008 b_goudre -- Feb 14, 2000: Created. 00009 ***/ 00010 00011 #ifndef __J2K__Train__ScheduleThread_HPP__ 00012 #define __J2K__Train__ScheduleThread_HPP__ 00013 00014 #include <sys/sched.h> 00015 #include "thread.hh" 00016 00017 class Schedule_thread : public Basic_thread 00018 { 00019 public: 00020 pid_type start(int algorithm = SCHED_RR, 00021 int priority = 19, 00022 size_t stack_size = default_stack_); 00023 // stuff needed for proper C++ object behavior 00024 Schedule_thread(); 00025 }; 00026 00027 #endif