diff options
author | Merry <git@mary.rs> | 2022-04-07 20:31:32 +0200 |
---|---|---|
committer | Merry <git@mary.rs> | 2022-04-07 20:44:07 +0200 |
commit | 1f275eb0777d5274cea85585c7eb2f8afc63f925 (patch) | |
tree | 9d54a4bf0e4585e25195791e88631054b00fbd02 /src/core/hle/kernel/time_manager.cpp | |
parent | common: Replace lock_guard with scoped_lock (diff) | |
download | yuzu-1f275eb0777d5274cea85585c7eb2f8afc63f925.tar yuzu-1f275eb0777d5274cea85585c7eb2f8afc63f925.tar.gz yuzu-1f275eb0777d5274cea85585c7eb2f8afc63f925.tar.bz2 yuzu-1f275eb0777d5274cea85585c7eb2f8afc63f925.tar.lz yuzu-1f275eb0777d5274cea85585c7eb2f8afc63f925.tar.xz yuzu-1f275eb0777d5274cea85585c7eb2f8afc63f925.tar.zst yuzu-1f275eb0777d5274cea85585c7eb2f8afc63f925.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/time_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/time_manager.cpp b/src/core/hle/kernel/time_manager.cpp index aa985d820..5b8fe8eae 100644 --- a/src/core/hle/kernel/time_manager.cpp +++ b/src/core/hle/kernel/time_manager.cpp @@ -24,7 +24,7 @@ TimeManager::TimeManager(Core::System& system_) : system{system_} { } void TimeManager::ScheduleTimeEvent(KThread* thread, s64 nanoseconds) { - std::lock_guard lock{mutex}; + std::scoped_lock lock{mutex}; if (nanoseconds > 0) { ASSERT(thread); ASSERT(thread->GetState() != ThreadState::Runnable); @@ -35,7 +35,7 @@ void TimeManager::ScheduleTimeEvent(KThread* thread, s64 nanoseconds) { } void TimeManager::UnscheduleTimeEvent(KThread* thread) { - std::lock_guard lock{mutex}; + std::scoped_lock lock{mutex}; system.CoreTiming().UnscheduleEvent(time_manager_event_type, reinterpret_cast<uintptr_t>(thread)); } |