mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
Kernel: Convert lock debug APIs to east const
This commit is contained in:
parent
bffcb3e92a
commit
464dc42640
Notes:
sideshowbarker
2024-07-18 07:01:17 +09:00
Author: https://github.com/bgianfo
Commit: 464dc42640
Pull-request: https://github.com/SerenityOS/serenity/pull/9261
Reviewed-by: https://github.com/alimpfard ✅
3 changed files with 8 additions and 8 deletions
|
@ -13,7 +13,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
void Mutex::lock(Mode mode, [[maybe_unused]] const LockLocation& location)
|
||||
void Mutex::lock(Mode mode, [[maybe_unused]] LockLocation const& location)
|
||||
{
|
||||
// NOTE: This may be called from an interrupt handler (not an IRQ handler)
|
||||
// and also from within critical sections!
|
||||
|
@ -312,7 +312,7 @@ auto Mutex::force_unlock_if_locked(u32& lock_count_to_restore) -> Mode
|
|||
return current_mode;
|
||||
}
|
||||
|
||||
void Mutex::restore_lock(Mode mode, u32 lock_count, [[maybe_unused]] const LockLocation& location)
|
||||
void Mutex::restore_lock(Mode mode, u32 lock_count, [[maybe_unused]] LockLocation const& location)
|
||||
{
|
||||
VERIFY(mode != Mode::Unlocked);
|
||||
VERIFY(lock_count > 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue