Thread: Wait current thread on svc_SleepThread
- Removed unused VBLANK sleep mode - Added error log for bad context switch - Renamed VerifyWait to CheckWaitType to be more clear
This commit is contained in:
parent
2e5869c939
commit
4fcdbed9f6
3 changed files with 35 additions and 22 deletions
|
@ -352,7 +352,8 @@ static Result ClearEvent(Handle evt) {
|
|||
static void SleepThread(s64 nanoseconds) {
|
||||
LOG_TRACE(Kernel_SVC, "called nanoseconds=%lld", nanoseconds);
|
||||
|
||||
// Check for next thread to schedule
|
||||
// Sleep current thread and check for next thread to schedule
|
||||
Kernel::WaitCurrentThread(WAITTYPE_SLEEP);
|
||||
HLE::Reschedule(__func__);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue