1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-12 02:30:30 +09:00

Kernel: Rename SpinLock => Spinlock

This commit is contained in:
Andreas Kling 2021-08-22 01:37:17 +02:00
parent 7d5d26b048
commit 55adace359
Notes: sideshowbarker 2024-07-18 05:24:54 +09:00
110 changed files with 491 additions and 491 deletions

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Locking/SpinLock.h>
#include <Kernel/Locking/Spinlock.h>
#include <Kernel/Process.h>
#include <Kernel/Sections.h>
#include <Kernel/WaitQueue.h>
@ -27,7 +27,7 @@ UNMAP_AFTER_INIT WorkQueue::WorkQueue(const char* name)
WorkItem* item;
bool have_more;
{
ScopedSpinLock lock(m_lock);
ScopedSpinlock 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);
ScopedSpinlock lock(m_lock);
m_items.append(*item);
}
m_wait_queue.wake_one();