mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
Userland: Use Threading::MutexLocker to lock/unlock mutexes
This commit is contained in:
parent
466000e05f
commit
0c27d95e76
Notes:
sideshowbarker
2024-07-17 10:05:47 +09:00
Author: https://github.com/idispatch 🔰
Commit: 0c27d95e76
Pull-request: https://github.com/SerenityOS/serenity/pull/15854
Reviewed-by: https://github.com/awesomekling
3 changed files with 15 additions and 20 deletions
|
@ -59,10 +59,8 @@ ErrorOr<void> ImageProcessor::enqueue_command(NonnullRefPtr<ImageProcessingComma
|
|||
m_processor_thread->detach();
|
||||
}
|
||||
|
||||
m_wakeup_mutex.lock();
|
||||
Threading::MutexLocker const locker(m_wakeup_mutex);
|
||||
m_wakeup_variable.signal();
|
||||
m_wakeup_mutex.unlock();
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue