summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-06-15 16:12:41 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-06-16 20:14:35 +0200
commit90792cdb6ea8f1676bd54309767209a4ec84a46f (patch)
treeeae330371459c0f9b71fcbf1c68e2fb01d19e294 /src/core/hle
parentMerge pull request #2578 from lioncash/cnmt (diff)
downloadyuzu-90792cdb6ea8f1676bd54309767209a4ec84a46f.tar
yuzu-90792cdb6ea8f1676bd54309767209a4ec84a46f.tar.gz
yuzu-90792cdb6ea8f1676bd54309767209a4ec84a46f.tar.bz2
yuzu-90792cdb6ea8f1676bd54309767209a4ec84a46f.tar.lz
yuzu-90792cdb6ea8f1676bd54309767209a4ec84a46f.tar.xz
yuzu-90792cdb6ea8f1676bd54309767209a4ec84a46f.tar.zst
yuzu-90792cdb6ea8f1676bd54309767209a4ec84a46f.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/kernel/thread.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index c73a40977..a055a5002 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -76,13 +76,13 @@ void Thread::WakeAfterDelay(s64 nanoseconds) {
// This function might be called from any thread so we have to be cautious and use the
// thread-safe version of ScheduleEvent.
const s64 cycles = Core::Timing::nsToCycles(std::chrono::nanoseconds{nanoseconds});
- Core::System::GetInstance().CoreTiming().ScheduleEventThreadsafe(
+ Core::System::GetInstance().CoreTiming().ScheduleEvent(
cycles, kernel.ThreadWakeupCallbackEventType(), callback_handle);
}
void Thread::CancelWakeupTimer() {
- Core::System::GetInstance().CoreTiming().UnscheduleEventThreadsafe(
- kernel.ThreadWakeupCallbackEventType(), callback_handle);
+ Core::System::GetInstance().CoreTiming().UnscheduleEvent(kernel.ThreadWakeupCallbackEventType(),
+ callback_handle);
}
static std::optional<s32> GetNextProcessorId(u64 mask) {