no need to store into the object field... this will probably just lead to weird...
[model-checker.git] / schedule.h
index c99748c730a4812a303eecf2d30cfc0876a17bd5..cba4b11a6d597011910ceec3a55324d5edf136f4 100644 (file)
@@ -1,3 +1,7 @@
+/** @file schedule.h
+ *     @brief Thread scheduler.
+ */
+
 #ifndef __SCHEDULE_H__
 #define __SCHEDULE_H__
 
@@ -7,6 +11,8 @@
 /* Forward declaration */
 class Thread;
 
+/** @brief The Scheduler class performs the mechanics of Thread execution
+ * scheduling. */
 class Scheduler {
 public:
        Scheduler();
@@ -16,9 +22,9 @@ public:
        Thread * get_current_thread(void);
        void print();
 
-       MEMALLOC
+       SNAPSHOTALLOC
 private:
-       std::list<Thread *, MyAlloc< Thread * > > readyList;
+       std::list<Thread *> readyList;
        Thread *current;
 };