projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
blank lines, spacing, etc.
[model-checker.git]
/
schedule.h
diff --git
a/schedule.h
b/schedule.h
index c99748c730a4812a303eecf2d30cfc0876a17bd5..cba4b11a6d597011910ceec3a55324d5edf136f4 100644
(file)
--- a/
schedule.h
+++ b/
schedule.h
@@
-1,3
+1,7
@@
+/** @file schedule.h
+ * @brief Thread scheduler.
+ */
+
#ifndef __SCHEDULE_H__
#define __SCHEDULE_H__
#ifndef __SCHEDULE_H__
#define __SCHEDULE_H__
@@
-7,6
+11,8
@@
/* Forward declaration */
class Thread;
/* Forward declaration */
class Thread;
+/** @brief The Scheduler class performs the mechanics of Thread execution
+ * scheduling. */
class Scheduler {
public:
Scheduler();
class Scheduler {
public:
Scheduler();
@@
-16,9
+22,9
@@
public:
Thread * get_current_thread(void);
void print();
Thread * get_current_thread(void);
void print();
-
MEM
ALLOC
+
SNAPSHOT
ALLOC
private:
private:
- std::list<Thread *
, MyAlloc< Thread * >
> readyList;
+ std::list<Thread *> readyList;
Thread *current;
};
Thread *current;
};