mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
Kernel: Add Lock::is_locked()
This commit is contained in:
parent
9d681beaf0
commit
6fd655102e
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ public:
|
||||||
void lock();
|
void lock();
|
||||||
void unlock();
|
void unlock();
|
||||||
bool unlock_if_locked();
|
bool unlock_if_locked();
|
||||||
|
bool is_locked() const { return m_holder; }
|
||||||
|
|
||||||
const char* name() const { return m_name; }
|
const char* name() const { return m_name; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue