projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make scheduler choose fair schedules when threads with priority are sleeping...
[model-checker.git]
/
model.cc
diff --git
a/model.cc
b/model.cc
index c0cc93eb0a80523eefc48f2fe7ec3c8119d8619c..a96a79c851ee83b5624df3bdafda7487802bf5b1 100644
(file)
--- a/
model.cc
+++ b/
model.cc
@@
-116,6
+116,10
@@
modelclock_t ModelChecker::get_next_seq_num()
return ++priv->used_sequence_numbers;
}
return ++priv->used_sequence_numbers;
}
+Node * ModelChecker::get_curr_node() {
+ return node_stack->get_head();
+}
+
/**
* @brief Choose the next thread to execute.
*
/**
* @brief Choose the next thread to execute.
*
@@
-767,10
+771,9
@@
Thread * ModelChecker::check_current_action(ModelAction *curr)
return get_next_thread(NULL);
}
return get_next_thread(NULL);
}
- wake_up_sleeping_actions(curr);
-
ModelAction *newcurr = initialize_curr_action(curr);
ModelAction *newcurr = initialize_curr_action(curr);
+ wake_up_sleeping_actions(curr);
/* Add the action to lists before any other model-checking tasks */
if (!second_part_of_rmw)
/* Add the action to lists before any other model-checking tasks */
if (!second_part_of_rmw)