mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
Kernel: Allow unlocking a held Lock with interrupts disabled
This is needed to eliminate a race in Thread::wait_on() where we'd otherwise have to wait until after unlocking the process lock before we can disable interrupts.
This commit is contained in:
parent
2a8de4cdec
commit
65cb406327
Notes:
sideshowbarker
2024-07-19 10:04:23 +09:00
Author: https://github.com/awesomekling
Commit: 65cb406327
4 changed files with 18 additions and 33 deletions
|
@ -21,7 +21,7 @@ public:
|
|||
|
||||
void lock();
|
||||
void unlock();
|
||||
bool unlock_if_locked();
|
||||
bool force_unlock_if_locked();
|
||||
bool is_locked() const { return m_holder; }
|
||||
|
||||
const char* name() const { return m_name; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue