projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b59d5f8
)
schedule: bugfix - fix typo in wake
author
Brian Norris
<banorris@uci.edu>
Tue, 9 Oct 2012 01:42:22 +0000
(18:42 -0700)
committer
Brian Norris
<banorris@uci.edu>
Tue, 9 Oct 2012 01:43:30 +0000
(18:43 -0700)
The Thread should be re-enabled, not disabled, when waking up.
schedule.cc
patch
|
blob
|
history
diff --git
a/schedule.cc
b/schedule.cc
index ea1d58208ea2b692ed19596c2929a73b254fc998..ec49a7448de6f34b1fa5acb38aaed83fd55dcfb7 100644
(file)
--- a/
schedule.cc
+++ b/
schedule.cc
@@
-115,7
+115,7
@@
void Scheduler::sleep(Thread *t)
void Scheduler::wake(Thread *t)
{
ASSERT(!t->is_model_thread());
- set_enabled(t, THREAD_
DIS
ABLED);
+ set_enabled(t, THREAD_
EN
ABLED);
t->set_state(THREAD_READY);
}