diff options
Diffstat (limited to 'src/core/hle/kernel/synchronization.cpp')
| -rw-r--r-- | src/core/hle/kernel/synchronization.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/synchronization.cpp b/src/core/hle/kernel/synchronization.cpp index 6651ad90c..d3f520ea2 100644 --- a/src/core/hle/kernel/synchronization.cpp +++ b/src/core/hle/kernel/synchronization.cpp | |||
| @@ -19,7 +19,7 @@ Synchronization::Synchronization(Core::System& system) : system{system} {} | |||
| 19 | 19 | ||
| 20 | void Synchronization::SignalObject(SynchronizationObject& obj) const { | 20 | void Synchronization::SignalObject(SynchronizationObject& obj) const { |
| 21 | auto& kernel = system.Kernel(); | 21 | auto& kernel = system.Kernel(); |
| 22 | SchedulerLock lock(kernel); | 22 | KScopedSchedulerLock lock(kernel); |
| 23 | if (obj.IsSignaled()) { | 23 | if (obj.IsSignaled()) { |
| 24 | for (auto thread : obj.GetWaitingThreads()) { | 24 | for (auto thread : obj.GetWaitingThreads()) { |
| 25 | if (thread->GetSchedulingStatus() == ThreadSchedStatus::Paused) { | 25 | if (thread->GetSchedulingStatus() == ThreadSchedStatus::Paused) { |
| @@ -90,7 +90,7 @@ std::pair<ResultCode, Handle> Synchronization::WaitFor( | |||
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | { | 92 | { |
| 93 | SchedulerLock lock(kernel); | 93 | KScopedSchedulerLock lock(kernel); |
| 94 | ResultCode signaling_result = thread->GetSignalingResult(); | 94 | ResultCode signaling_result = thread->GetSignalingResult(); |
| 95 | SynchronizationObject* signaling_object = thread->GetSignalingObject(); | 95 | SynchronizationObject* signaling_object = thread->GetSignalingObject(); |
| 96 | thread->SetSynchronizationObjects(nullptr); | 96 | thread->SetSynchronizationObjects(nullptr); |