projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
model: add 'pending' assertion
[c11tester.git]
/
model.cc
diff --git
a/model.cc
b/model.cc
index 97f235c463ce2915fb136865e3bd7a3fc0aaebbb..01e4c491a9e637cb1c1ffd2b78607c82f2472e82 100644
(file)
--- a/
model.cc
+++ b/
model.cc
@@
-2663,6
+2663,7
@@
uint64_t ModelChecker::switch_to_master(ModelAction *act)
{
DBG();
Thread *old = thread_current();
+ ASSERT(!old->get_pending());
old->set_pending(act);
if (Thread::swap(old, &system_context) < 0) {
perror("swap threads");