From 0b4671add70850387d2a2b45f6e66568b44ef75b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 29 Aug 2021 12:48:43 +0200 Subject: Kernel: {Mutex,Spinlock}::own_lock() => is_locked_by_current_thread() Rename these API's to make it more clear what they are checking. --- Kernel/Locking/Mutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Locking/Mutex.h') diff --git a/Kernel/Locking/Mutex.h b/Kernel/Locking/Mutex.h index f64153f63f..068daa4635 100644 --- a/Kernel/Locking/Mutex.h +++ b/Kernel/Locking/Mutex.h @@ -42,7 +42,7 @@ public: SpinlockLocker lock(m_lock); return m_mode != Mode::Unlocked; } - [[nodiscard]] bool own_lock() const + [[nodiscard]] bool is_locked_by_current_thread() const { SpinlockLocker lock(m_lock); if (m_mode == Mode::Exclusive) -- cgit v1.2.3