projects
/
c11tester.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
.gitignore: add *~ files
[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__ */