mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
Kernel: Rename SpinLock => Spinlock
This commit is contained in:
parent
7d5d26b048
commit
55adace359
Notes:
sideshowbarker
2024-07-18 05:24:54 +09:00
Author: https://github.com/awesomekling
Commit: 55adace359
110 changed files with 491 additions and 491 deletions
|
@ -251,7 +251,7 @@ void KeyboardDevice::key_state_changed(u8 scan_code, bool pressed)
|
|||
HIDManagement::the().m_client->on_key_pressed(event);
|
||||
|
||||
{
|
||||
ScopedSpinLock lock(m_queue_lock);
|
||||
ScopedSpinlock lock(m_queue_lock);
|
||||
m_queue.enqueue(event);
|
||||
}
|
||||
|
||||
|
@ -281,7 +281,7 @@ bool KeyboardDevice::can_read(const FileDescription&, size_t) const
|
|||
KResultOr<size_t> KeyboardDevice::read(FileDescription&, u64, UserOrKernelBuffer& buffer, size_t size)
|
||||
{
|
||||
size_t nread = 0;
|
||||
ScopedSpinLock lock(m_queue_lock);
|
||||
ScopedSpinlock lock(m_queue_lock);
|
||||
while (nread < size) {
|
||||
if (m_queue.is_empty())
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue