summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-05 09:07:44 +0100
committerbunnei <bunneidev@gmail.com>2020-12-06 09:27:13 +0100
commited4d1e2adefa4775dc1a950d7db84c7935ae7324 (patch)
tree7e8d9831fcdee4f538a24b00ca342000d59972dd
parenthle: kernel: KScopedLock: Various style fixes based on code review feedback. (diff)
downloadyuzu-ed4d1e2adefa4775dc1a950d7db84c7935ae7324.tar
yuzu-ed4d1e2adefa4775dc1a950d7db84c7935ae7324.tar.gz
yuzu-ed4d1e2adefa4775dc1a950d7db84c7935ae7324.tar.bz2
yuzu-ed4d1e2adefa4775dc1a950d7db84c7935ae7324.tar.lz
yuzu-ed4d1e2adefa4775dc1a950d7db84c7935ae7324.tar.xz
yuzu-ed4d1e2adefa4775dc1a950d7db84c7935ae7324.tar.zst
yuzu-ed4d1e2adefa4775dc1a950d7db84c7935ae7324.zip
-rw-r--r--src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h12
1 files changed, 6 insertions, 6 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 d1cc5dda7..2bb3817fa 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
@@ -16,12 +16,6 @@
namespace Kernel {
class KScopedSchedulerLockAndSleep {
-private:
- KernelCore& kernel;
- Handle& event_handle;
- Thread* thread{};
- s64 timeout_tick{};
-
public:
explicit KScopedSchedulerLockAndSleep(KernelCore& kernel, Handle& event_handle, Thread* t,
s64 timeout)
@@ -45,6 +39,12 @@ public:
void CancelSleep() {
this->timeout_tick = 0;
}
+
+private:
+ KernelCore& kernel;
+ Handle& event_handle;
+ Thread* thread{};
+ s64 timeout_tick{};
};
} // namespace Kernel