snapshot: fix EOL spaces
[model-checker.git] / schedule.h
index 555cbc4ad027896337a0910969089103d875956f..c99748c730a4812a303eecf2d30cfc0876a17bd5 100644 (file)
@@ -2,19 +2,23 @@
 #define __SCHEDULE_H__
 
 #include <list>
+#include "mymemory.h"
 
 /* Forward declaration */
 class Thread;
 
 class Scheduler {
 public:
+       Scheduler();
        void add_thread(Thread *t);
        void remove_thread(Thread *t);
        Thread * next_thread(void);
        Thread * get_current_thread(void);
        void print();
+
+       MEMALLOC
 private:
-       std::list<Thread *> readyList;
+       std::list<Thread *, MyAlloc< Thread * > > readyList;
        Thread *current;
 };