Userland: Use Threading::MutexLocker to lock/unlock mutexes

This commit is contained in:
Oleg Kosenkov 2022-10-30 02:34:38 -04:00 committed by Andreas Kling
commit 0c27d95e76
Notes: sideshowbarker 2024-07-17 10:05:47 +09:00
3 changed files with 15 additions and 20 deletions

View file

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