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

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
parent 466000e05f
commit 0c27d95e76
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 {};
}