1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

Kernel: Add Lock::is_locked()

This commit is contained in:
Andreas Kling 2019-12-26 11:43:23 +01:00
parent 9d681beaf0
commit 6fd655102e

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; }