summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-05 08:37:35 +0100
committerbunnei <bunneidev@gmail.com>2020-12-06 09:03:24 +0100
commitb1326d9230f7c1f33960d2816042b1a41d3b839f (patch)
treeb75c28a51c1d5612d829c8bd35373844ef644fa3 /src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h
parentkernel: KScopedSchedulerLockAndSleep: Remove unused ctor. (diff)
downloadyuzu-b1326d9230f7c1f33960d2816042b1a41d3b839f.tar
yuzu-b1326d9230f7c1f33960d2816042b1a41d3b839f.tar.gz
yuzu-b1326d9230f7c1f33960d2816042b1a41d3b839f.tar.bz2
yuzu-b1326d9230f7c1f33960d2816042b1a41d3b839f.tar.lz
yuzu-b1326d9230f7c1f33960d2816042b1a41d3b839f.tar.xz
yuzu-b1326d9230f7c1f33960d2816042b1a41d3b839f.tar.zst
yuzu-b1326d9230f7c1f33960d2816042b1a41d3b839f.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h b/src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h
index 16f470923..d1cc5dda7 100644
--- a/src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h
+++ b/src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h
@@ -28,17 +28,17 @@ public:
: kernel(kernel), event_handle(event_handle), thread(t), timeout_tick(timeout) {
event_handle = InvalidHandle;
- /* Lock the scheduler. */
+ // Lock the scheduler.
kernel.GlobalSchedulerContext().scheduler_lock.Lock();
}
~KScopedSchedulerLockAndSleep() {
- /* Register the sleep. */
+ // Register the sleep.
if (this->timeout_tick > 0) {
kernel.TimeManager().ScheduleTimeEvent(event_handle, this->thread, this->timeout_tick);
}
- /* Unlock the scheduler. */
+ // Unlock the scheduler.
kernel.GlobalSchedulerContext().scheduler_lock.Unlock();
}