projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
snapshot: fix EOL spaces
[model-checker.git]
/
schedule.h
diff --git
a/schedule.h
b/schedule.h
index 86e4e40da18c5bc41bfd3908d76b4c48dc80b20b..c99748c730a4812a303eecf2d30cfc0876a17bd5 100644
(file)
--- a/
schedule.h
+++ b/
schedule.h
@@
-2,18
+2,23
@@
#define __SCHEDULE_H__
#include <list>
#define __SCHEDULE_H__
#include <list>
+#include "mymemory.h"
-#include "threads.h"
-#include "model.h"
+/* Forward declaration */
+class Thread;
class Scheduler {
public:
class Scheduler {
public:
+ Scheduler();
void add_thread(Thread *t);
void add_thread(Thread *t);
+ void remove_thread(Thread *t);
Thread * next_thread(void);
Thread * get_current_thread(void);
void print();
Thread * next_thread(void);
Thread * get_current_thread(void);
void print();
+
+ MEMALLOC
private:
private:
- std::list<Thread *> readyList;
+ std::list<Thread *
, MyAlloc< Thread * >
> readyList;
Thread *current;
};
Thread *current;
};