X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=schedule.h;h=8e5554aec049ceee46f7bc1e4bf4cc9aa17b7c9f;hb=ad105d2fb3c5f352ac6b7da0e1e910e94692398d;hp=4269c4deaf0efdf33aa3edd04c75e848497ef776;hpb=7ae6e12db65b5addd144f7ab6db39874a8d0c38f;p=c11tester.git diff --git a/schedule.h b/schedule.h index 4269c4de..8e5554ae 100644 --- a/schedule.h +++ b/schedule.h @@ -7,11 +7,7 @@ #include "mymemory.h" #include "modeltypes.h" - -/* Forward declaration */ -class Thread; -class Node; -class ModelExecution; +#include "classlist.h" typedef enum enabled_type { THREAD_DISABLED, @@ -32,7 +28,7 @@ public: void remove_thread(Thread *t); void sleep(Thread *t); void wake(Thread *t); - Thread * select_next_thread(Node *n); + Thread * select_next_thread(); void set_current_thread(Thread *t); Thread * get_current_thread() const; void print() const; @@ -43,6 +39,7 @@ public: bool is_enabled(const Thread *t) const; bool is_enabled(thread_id_t tid) const; bool is_sleep_set(const Thread *t) const; + bool is_sleep_set(thread_id_t tid) const; bool all_threads_sleeping() const; void set_scheduler_thread(thread_id_t tid); @@ -59,4 +56,4 @@ private: Thread *current; }; -#endif /* __SCHEDULE_H__ */ +#endif /* __SCHEDULE_H__ */