Andreas Kling
0b4671add7
Kernel: {Mutex,Spinlock}::own_lock() => is_locked_by_current_thread()
...
Rename these API's to make it more clear what they are checking.
2021-08-29 12:53:11 +02:00
Andreas Kling
6ae60137d7
Kernel: Use StringView instead of C strings in Mutex
2021-08-29 02:21:01 +02:00
Andreas Kling
a8967388d3
Kernel: Remove unused ScopedLockRelease class
2021-08-23 02:17:02 +02:00
Andreas Kling
c922a7da09
Kernel: Rename ScopedSpinlock => SpinlockLocker
...
This matches MutexLocker, and doesn't sound like it's a lock itself.
2021-08-22 03:34:10 +02:00
Andreas Kling
55adace359
Kernel: Rename SpinLock => Spinlock
2021-08-22 03:34:10 +02:00
Brian Gianforcaro
464dc42640
Kernel: Convert lock debug APIs to east const
2021-08-13 20:42:39 +02:00
Brian Gianforcaro
bea74f4b77
Kernel: Reduce LOCK_DEBUG ifdefs by utilizing Kernel::LockLocation
...
The LOCK_DEBUG conditional code is pretty ugly for a feature that we
only use rarely. We can remove a significant amount of this code by
utilizing a zero sized fake type when not building in LOCK_DEBUG mode.
This lets us keep the same API, but just let the compiler optimize it
away when don't actually care about the location the caller came from.
2021-08-13 20:42:39 +02:00
Jean-Baptiste Boric
aea98a85d1
Kernel: Move Lockable into its own header
2021-08-07 11:48:00 +02:00
Jean-Baptiste Boric
f7f794e74a
Kernel: Move Mutex into Locking/
2021-08-07 11:48:00 +02:00