1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 13:44:57 +00:00

Kernel: Rename ScopedSpinlock => SpinlockLocker

This matches MutexLocker, and doesn't sound like it's a lock itself.
This commit is contained in:
Andreas Kling 2021-08-22 01:49:22 +02:00
parent 55adace359
commit c922a7da09
78 changed files with 365 additions and 366 deletions

View file

@ -27,7 +27,7 @@ UNMAP_AFTER_INIT WorkQueue::WorkQueue(const char* name)
WorkItem* item;
bool have_more;
{
ScopedSpinlock lock(m_lock);
SpinlockLocker lock(m_lock);
item = m_items.take_first();
have_more = !m_items.is_empty();
}
@ -48,7 +48,7 @@ UNMAP_AFTER_INIT WorkQueue::WorkQueue(const char* name)
void WorkQueue::do_queue(WorkItem* item)
{
{
ScopedSpinlock lock(m_lock);
SpinlockLocker lock(m_lock);
m_items.append(*item);
}
m_wait_queue.wake_one();