projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://demsky.eecs.uci.edu/home/git/model-checker
[model-checker.git]
/
model.cc
diff --git
a/model.cc
b/model.cc
index 508f3b98284920860c9ce5eb4231b786b070b979..0beddd1bf022f29bea10b7e1bf86c75c1e4f9e0d 100644
(file)
--- a/
model.cc
+++ b/
model.cc
@@
-243,6
+243,13
@@
ModelAction * ModelChecker::get_last_conflict(ModelAction *act)
return NULL;
}
return NULL;
}
+/** This method find backtracking points where we should try to
+ * reorder the parameter ModelAction against.
+ *
+ * @param the ModelAction to find backtracking points for.
+ */
+
+
void ModelChecker::set_backtracking(ModelAction *act)
{
Thread *t = get_thread(act);
void ModelChecker::set_backtracking(ModelAction *act)
{
Thread *t = get_thread(act);
@@
-1536,6
+1543,11
@@
void ModelChecker::add_thread(Thread *t)
scheduler->add_thread(t);
}
scheduler->add_thread(t);
}
+/**
+ * Removes a thread from the scheduler.
+ * @param the thread to remove.
+ */
+
void ModelChecker::remove_thread(Thread *t)
{
scheduler->remove_thread(t);
void ModelChecker::remove_thread(Thread *t)
{
scheduler->remove_thread(t);