summaryrefslogtreecommitdiffstats
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-01-18 19:56:40 +0100
committerbunnei <bunneidev@gmail.com>2015-01-22 02:47:45 +0100
commit254e4ebd58a31e8462b70799f95f096d0d0038f2 (patch)
treee8e475ec7af1ba2df06b7f44298408f51a89a116 /src/core/hle/svc.cpp
parentKernel: Get rid of WaitTypes and simplify lots of code, removing hacks. (diff)
downloadyuzu-254e4ebd58a31e8462b70799f95f096d0d0038f2.tar
yuzu-254e4ebd58a31e8462b70799f95f096d0d0038f2.tar.gz
yuzu-254e4ebd58a31e8462b70799f95f096d0d0038f2.tar.bz2
yuzu-254e4ebd58a31e8462b70799f95f096d0d0038f2.tar.lz
yuzu-254e4ebd58a31e8462b70799f95f096d0d0038f2.tar.xz
yuzu-254e4ebd58a31e8462b70799f95f096d0d0038f2.tar.zst
yuzu-254e4ebd58a31e8462b70799f95f096d0d0038f2.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/svc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index 2d5f41af6..cf029bf69 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -105,7 +105,7 @@ static Result SendSyncRequest(Handle handle) {
ResultVal<bool> wait = session->SyncRequest();
if (wait.Succeeded() && *wait) {
- Kernel::WaitCurrentThread(); // TODO(bunnei): Is this correct?
+ Kernel::WaitCurrentThread_Sleep(); // TODO(bunnei): Is this correct?
}
return wait.Code().raw;
@@ -196,7 +196,7 @@ static Result WaitSynchronizationN(s32* out, Handle* handles, s32 handle_count,
// NOTE: This should deadlock the current thread if no timeout was specified
if (!wait_all) {
wait_thread = true;
- Kernel::WaitCurrentThread();
+ Kernel::WaitCurrentThread_Sleep();
}
}
@@ -450,7 +450,7 @@ static void SleepThread(s64 nanoseconds) {
LOG_TRACE(Kernel_SVC, "called nanoseconds=%lld", nanoseconds);
// Sleep current thread and check for next thread to schedule
- Kernel::WaitCurrentThread();
+ Kernel::WaitCurrentThread_Sleep();
// Create an event to wake the thread up after the specified nanosecond delay has passed
Kernel::WakeThreadAfterDelay(Kernel::GetCurrentThread(), nanoseconds);