diff options
| -rw-r--r-- | src/core/hle/kernel/k_scheduler.h | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/k_scoped_lock.h | 6 | ||||
| -rw-r--r-- | src/core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/kernel/k_scheduler.h b/src/core/hle/kernel/k_scheduler.h index 01c8c4b73..70d6bfcee 100644 --- a/src/core/hle/kernel/k_scheduler.h +++ b/src/core/hle/kernel/k_scheduler.h | |||
| @@ -200,7 +200,7 @@ private: | |||
| 200 | 200 | ||
| 201 | class [[nodiscard]] KScopedSchedulerLock : KScopedLock<GlobalSchedulerContext::LockType> { | 201 | class [[nodiscard]] KScopedSchedulerLock : KScopedLock<GlobalSchedulerContext::LockType> { |
| 202 | public: | 202 | public: |
| 203 | explicit KScopedSchedulerLock(KernelCore& kernel); | 203 | explicit KScopedSchedulerLock(KernelCore & kernel); |
| 204 | ~KScopedSchedulerLock(); | 204 | ~KScopedSchedulerLock(); |
| 205 | }; | 205 | }; |
| 206 | 206 | ||
diff --git a/src/core/hle/kernel/k_scoped_lock.h b/src/core/hle/kernel/k_scoped_lock.h index 7a1035b8c..72c3b0252 100644 --- a/src/core/hle/kernel/k_scoped_lock.h +++ b/src/core/hle/kernel/k_scoped_lock.h | |||
| @@ -22,10 +22,10 @@ concept KLockable = !std::is_reference_v<T> && requires(T & t) { | |||
| 22 | template <typename T> | 22 | template <typename T> |
| 23 | requires KLockable<T> class [[nodiscard]] KScopedLock { | 23 | requires KLockable<T> class [[nodiscard]] KScopedLock { |
| 24 | public: | 24 | public: |
| 25 | explicit KScopedLock(T* l) : lock_ptr(l) { | 25 | explicit KScopedLock(T * l) : lock_ptr(l) { |
| 26 | this->lock_ptr->Lock(); | 26 | this->lock_ptr->Lock(); |
| 27 | } | 27 | } |
| 28 | explicit KScopedLock(T& l) : KScopedLock(std::addressof(l)) {} | 28 | explicit KScopedLock(T & l) : KScopedLock(std::addressof(l)) {} |
| 29 | 29 | ||
| 30 | ~KScopedLock() { | 30 | ~KScopedLock() { |
| 31 | this->lock_ptr->Unlock(); | 31 | this->lock_ptr->Unlock(); |
| @@ -34,7 +34,7 @@ public: | |||
| 34 | KScopedLock(const KScopedLock&) = delete; | 34 | KScopedLock(const KScopedLock&) = delete; |
| 35 | KScopedLock& operator=(const KScopedLock&) = delete; | 35 | KScopedLock& operator=(const KScopedLock&) = delete; |
| 36 | 36 | ||
| 37 | KScopedLock(KScopedLock&&) = delete; | 37 | KScopedLock(KScopedLock &&) = delete; |
| 38 | KScopedLock& operator=(KScopedLock&&) = delete; | 38 | KScopedLock& operator=(KScopedLock&&) = delete; |
| 39 | 39 | ||
| 40 | private: | 40 | private: |
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 4a35842c5..ebecf0c77 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 | |||
| @@ -17,7 +17,7 @@ namespace Kernel { | |||
| 17 | 17 | ||
| 18 | class [[nodiscard]] KScopedSchedulerLockAndSleep { | 18 | class [[nodiscard]] KScopedSchedulerLockAndSleep { |
| 19 | public: | 19 | public: |
| 20 | explicit KScopedSchedulerLockAndSleep(KernelCore& kernel, KThread* t, s64 timeout) | 20 | explicit KScopedSchedulerLockAndSleep(KernelCore & kernel, KThread * t, s64 timeout) |
| 21 | : kernel(kernel), thread(t), timeout_tick(timeout) { | 21 | : kernel(kernel), thread(t), timeout_tick(timeout) { |
| 22 | // Lock the scheduler. | 22 | // Lock the scheduler. |
| 23 | kernel.GlobalSchedulerContext().scheduler_lock.Lock(); | 23 | kernel.GlobalSchedulerContext().scheduler_lock.Lock(); |