Skip to content

Commit

Permalink
Kernel: Add Lock::is_locked()
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Dec 26, 2019
1 parent 9d681be commit 6fd6551
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Kernel/Lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Lock {
void lock();
void unlock();
bool unlock_if_locked();
bool is_locked() const { return m_holder; }

const char* name() const { return m_name; }

Expand Down

0 comments on commit 6fd6551

Please sign in to comment.