Service/DSP: implement semaphore event

This commit is contained in:
Weiyi Wang
2018-12-06 10:18:39 -05:00
parent 6f6ffceec4
commit 92e5c51adb
4 changed files with 20 additions and 2 deletions

View File

@ -86,10 +86,17 @@ void WaitObject::WakeupAllWaitingThreads() {
thread->ResumeFromWait();
}
if (hle_notifier)
hle_notifier();
}
const std::vector<SharedPtr<Thread>>& WaitObject::GetWaitingThreads() const {
return waiting_threads;
}
void WaitObject::SetHLENotifier(std::function<void()> callback) {
hle_notifier = callback;
}
} // namespace Kernel