small changes
[c11tester.git] / schedule.h
index 4269c4deaf0efdf33aa3edd04c75e848497ef776..8e5554aec049ceee46f7bc1e4bf4cc9aa17b7c9f 100644 (file)
@@ -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__ */