555cbc4ad027896337a0910969089103d875956f
[c11tester.git] / schedule.h
1 #ifndef __SCHEDULE_H__
2 #define __SCHEDULE_H__
3
4 #include <list>
5
6 /* Forward declaration */
7 class Thread;
8
9 class Scheduler {
10 public:
11         void add_thread(Thread *t);
12         void remove_thread(Thread *t);
13         Thread * next_thread(void);
14         Thread * get_current_thread(void);
15         void print();
16 private:
17         std::list<Thread *> readyList;
18         Thread *current;
19 };
20
21 #endif /* __SCHEDULE_H__ */