snapshot: replace DumpIntoLog() with lighter-weight debugging
[model-checker.git] / schedule.h
index 68900a56918add354fe471418567c1d289eca49c..ad9f11af035b460cf9c5c0457addf44bb6e172db 100644 (file)
@@ -1,3 +1,7 @@
+/** @file schedule.h
+ *     @brief Thread scheduler.
+ */
+
 #ifndef __SCHEDULE_H__
 #define __SCHEDULE_H__
 
@@ -7,6 +11,7 @@
 /* Forward declaration */
 class Thread;
 
+/** @brief The Scheduler class controls the Thread execution schedule. */
 class Scheduler {
 public:
        Scheduler();
@@ -15,9 +20,10 @@ public:
        Thread * next_thread(void);
        Thread * get_current_thread(void);
        void print();
-  MEMALLOC
+
+       SNAPSHOTALLOC
 private:
-       std::list<Thread *, MyAlloc< Thread * > > readyList;
+       std::list<Thread *> readyList;
        Thread *current;
 };