snapshot: don't declare sTheRecord in both #if and #else
[model-checker.git] / schedule.h
index e81ea935cc961b1568a25e095ae0ca4a6c9813bd..ad9f11af035b460cf9c5c0457addf44bb6e172db 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,7 @@
 /* Forward declaration */
 class Thread;
 
+/** @brief The Scheduler class controls the Thread execution schedule. */
 class Scheduler {
 public:
        Scheduler();
@@ -17,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;
 };