projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add support for sleep sets...
[model-checker.git]
/
schedule.h
diff --git
a/schedule.h
b/schedule.h
index 18936b612dacbed81e91a949d164e990b5f964b5..3a54e8cfda9a55c2bcce5af72bc006bcf32a4588 100644
(file)
--- a/
schedule.h
+++ b/
schedule.h
@@
-10,6
+10,7
@@
/* Forward declaration */
class Thread;
/* Forward declaration */
class Thread;
+class Node;
typedef enum enabled_type {
THREAD_DISABLED,
typedef enum enabled_type {
THREAD_DISABLED,
@@
-30,7
+31,10
@@
public:
Thread * get_current_thread() const;
void print() const;
enabled_type_t * get_enabled() { return is_enabled; };
Thread * get_current_thread() const;
void print() const;
enabled_type_t * get_enabled() { return is_enabled; };
-
+ void remove_sleep(Thread *t);
+ void add_sleep(Thread *t);
+ enabled_type_t get_enabled(Thread *t);
+ void update_sleep_set(Node *n);
SNAPSHOTALLOC
private:
/** The list of available Threads that are not currently running */
SNAPSHOTALLOC
private:
/** The list of available Threads that are not currently running */