schedule: bugfix - fix typo in wake
[c11tester.git] / schedule.cc
index ea1d582..ec49a74 100644 (file)
@@ -115,7 +115,7 @@ void Scheduler::sleep(Thread *t)
 void Scheduler::wake(Thread *t)
 {
        ASSERT(!t->is_model_thread());
-       set_enabled(t, THREAD_DISABLED);
+       set_enabled(t, THREAD_ENABLED);
        t->set_state(THREAD_READY);
 }