mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-08-12 18:29:22 +02:00
style cleanup
This commit is contained in:
parent
af2b9252ec
commit
9fd8a08495
@ -37,7 +37,7 @@ namespace ams::kern {
|
|||||||
T *lock_ptr;
|
T *lock_ptr;
|
||||||
public:
|
public:
|
||||||
explicit ALWAYS_INLINE KScopedLock(T *l) : lock_ptr(l) { this->lock_ptr->Lock(); }
|
explicit ALWAYS_INLINE KScopedLock(T *l) : lock_ptr(l) { this->lock_ptr->Lock(); }
|
||||||
explicit ALWAYS_INLINE KScopedLock(T &l) : KScopedLock(std::addressof(l)) { /* ... */}
|
explicit ALWAYS_INLINE KScopedLock(T &l) : KScopedLock(std::addressof(l)) { /* ... */ }
|
||||||
ALWAYS_INLINE ~KScopedLock() { this->lock_ptr->Unlock(); }
|
ALWAYS_INLINE ~KScopedLock() { this->lock_ptr->Unlock(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user