Kernel: Add Lock::is_locked()

This commit is contained in:
Andreas Kling 2019-12-26 11:43:23 +01:00
parent 9d681beaf0
commit 6fd655102e
Notes: sideshowbarker 2024-07-19 10:39:26 +09:00

View File

@ -22,6 +22,7 @@ public:
void lock();
void unlock();
bool unlock_if_locked();
bool is_locked() const { return m_holder; }
const char* name() const { return m_name; }