mirror of https://git.suyu.dev/suyu/suyu
hle: kernel: KScopedSchedulerLockAndSleep: Various style fixes based on code review feedback.
This commit is contained in:
parent
b1b4f2337e
commit
ed4d1e2ade
|
@ -16,12 +16,6 @@
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
class KScopedSchedulerLockAndSleep {
|
class KScopedSchedulerLockAndSleep {
|
||||||
private:
|
|
||||||
KernelCore& kernel;
|
|
||||||
Handle& event_handle;
|
|
||||||
Thread* thread{};
|
|
||||||
s64 timeout_tick{};
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit KScopedSchedulerLockAndSleep(KernelCore& kernel, Handle& event_handle, Thread* t,
|
explicit KScopedSchedulerLockAndSleep(KernelCore& kernel, Handle& event_handle, Thread* t,
|
||||||
s64 timeout)
|
s64 timeout)
|
||||||
|
@ -45,6 +39,12 @@ public:
|
||||||
void CancelSleep() {
|
void CancelSleep() {
|
||||||
this->timeout_tick = 0;
|
this->timeout_tick = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
KernelCore& kernel;
|
||||||
|
Handle& event_handle;
|
||||||
|
Thread* thread{};
|
||||||
|
s64 timeout_tick{};
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Kernel
|
} // namespace Kernel
|
||||||
|
|
Loading…
Reference in New Issue