schedule: use STL list class instead of custom queue
[model-checker.git] / schedule.h
index eb0f68c74be5cdf101fca6f6c6166680c6f21d90..762e16818ed220dfc3a313a0b297638d7e9bfddd 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __SCHEDULE_H__
 #define __SCHEDULE_H__
 
+#include <list>
+
 #include "libthreads.h"
 #include "model.h"
 
@@ -16,6 +18,8 @@ public:
        void add_thread(struct thread *t);
        struct thread * next_thread(void);
        struct thread * get_current_thread(void);
+private:
+       std::list<struct thread *> queue;
 };
 
 #endif /* __SCHEDULE_H__ */