diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-22 01:37:17 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-22 03:34:10 +0200 |
commit | 55adace359bfda606b445b5177ce5138687d4626 (patch) | |
tree | 429f7e24f71cde34f8f54f10b8ae43b74c514488 /Kernel/FileSystem/Plan9FileSystem.cpp | |
parent | 7d5d26b0481221d3ebf420de346cc33b3e003147 (diff) | |
download | serenity-55adace359bfda606b445b5177ce5138687d4626.zip |
Kernel: Rename SpinLock => Spinlock
Diffstat (limited to 'Kernel/FileSystem/Plan9FileSystem.cpp')
-rw-r--r-- | Kernel/FileSystem/Plan9FileSystem.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Kernel/FileSystem/Plan9FileSystem.cpp b/Kernel/FileSystem/Plan9FileSystem.cpp index 163e69d6bd..2bff5b8f05 100644 --- a/Kernel/FileSystem/Plan9FileSystem.cpp +++ b/Kernel/FileSystem/Plan9FileSystem.cpp @@ -412,7 +412,7 @@ Plan9FS::ReceiveCompletion::~ReceiveCompletion() bool Plan9FS::Blocker::unblock(u16 tag) { { - ScopedSpinLock lock(m_lock); + ScopedSpinlock lock(m_lock); if (m_did_unblock) return false; m_did_unblock = true; @@ -428,7 +428,7 @@ bool Plan9FS::Blocker::unblock(u16 tag) void Plan9FS::Blocker::not_blocking(bool) { { - ScopedSpinLock lock(m_lock); + ScopedSpinlock lock(m_lock); if (m_did_unblock) return; } @@ -438,7 +438,7 @@ void Plan9FS::Blocker::not_blocking(bool) bool Plan9FS::Blocker::is_completed() const { - ScopedSpinLock lock(m_completion->lock); + ScopedSpinlock lock(m_completion->lock); return m_completion->completed; } @@ -470,7 +470,7 @@ void Plan9FS::Plan9FSBlockCondition::unblock_all() void Plan9FS::Plan9FSBlockCondition::try_unblock(Plan9FS::Blocker& blocker) { if (m_fs.is_complete(*blocker.completion())) { - ScopedSpinLock lock(m_lock); + ScopedSpinlock lock(m_lock); blocker.unblock(blocker.completion()->tag); } } @@ -576,7 +576,7 @@ KResult Plan9FS::read_and_dispatch_one_message() auto optional_completion = m_completions.get(header.tag); if (optional_completion.has_value()) { auto completion = optional_completion.value(); - ScopedSpinLock lock(completion->lock); + ScopedSpinlock lock(completion->lock); completion->result = KSuccess; completion->message = adopt_own_if_nonnull(new (nothrow) Message { buffer.release_nonnull() }); completion->completed = true; @@ -666,7 +666,7 @@ void Plan9FS::thread_main() void Plan9FS::ensure_thread() { - ScopedSpinLock lock(m_thread_lock); + ScopedSpinlock lock(m_thread_lock); if (!m_thread_running.exchange(true, AK::MemoryOrder::memory_order_acq_rel)) { Process::create_kernel_process(m_thread, "Plan9FS", [&]() { thread_main(); |