Kernel: Reschedule on SignalEvent and SendSyncRequest, fix some bugs.

This commit is contained in:
bunnei 2015-01-18 18:01:58 -05:00
parent dde02f79af
commit d2759c578e
2 changed files with 2 additions and 1 deletions

View file

@ -35,9 +35,9 @@ Thread* WaitObject::ReleaseNextThread() {
return nullptr;
auto next_thread = waiting_threads.front();
waiting_threads.erase(waiting_threads.begin());
next_thread->ReleaseWaitObject(this);
waiting_threads.erase(waiting_threads.begin());
return next_thread.get();
}