add some comments
[model-checker.git] / schedule.h
index e81ea935cc961b1568a25e095ae0ca4a6c9813bd..cba4b11a6d597011910ceec3a55324d5edf136f4 100644 (file)
@@ -1,4 +1,6 @@
-/* -*- Mode: C; indent-tabs-mode: t -*- */
+/** @file schedule.h
+ *     @brief Thread scheduler.
+ */
 
 #ifndef __SCHEDULE_H__
 #define __SCHEDULE_H__
@@ -9,6 +11,8 @@
 /* Forward declaration */
 class Thread;
 
+/** @brief The Scheduler class performs the mechanics of Thread execution
+ * scheduling. */
 class Scheduler {
 public:
        Scheduler();
@@ -17,9 +21,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;
 };