summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-22 01:37:17 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-22 03:34:10 +0200
commit55adace359bfda606b445b5177ce5138687d4626 (patch)
tree429f7e24f71cde34f8f54f10b8ae43b74c514488 /Kernel/Process.h
parent7d5d26b0481221d3ebf420de346cc33b3e003147 (diff)
downloadserenity-55adace359bfda606b445b5177ce5138687d4626.zip
Kernel: Rename SpinLock => Spinlock
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index b707df242f..71e6979245 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -636,7 +636,7 @@ public:
KResult try_clone(const Kernel::Process::FileDescriptions& other)
{
- ScopedSpinLock lock_other(other.m_fds_lock);
+ ScopedSpinlock lock_other(other.m_fds_lock);
if (!try_resize(other.m_fds_metadatas.size()))
return ENOMEM;
@@ -667,7 +667,7 @@ public:
void clear()
{
- ScopedSpinLock lock(m_fds_lock);
+ ScopedSpinlock lock(m_fds_lock);
m_fds_metadatas.clear();
}
@@ -677,7 +677,7 @@ public:
private:
FileDescriptions() = default;
static constexpr size_t m_max_open_file_descriptors { FD_SETSIZE };
- mutable SpinLock<u8> m_fds_lock;
+ mutable Spinlock<u8> m_fds_lock;
Vector<FileDescriptionAndFlags> m_fds_metadatas;
};
@@ -743,10 +743,10 @@ public:
const FileDescriptions& fds() const { return m_fds; }
private:
- SpinLockProtected<Thread::ListInProcess>& thread_list() { return m_thread_list; }
- SpinLockProtected<Thread::ListInProcess> const& thread_list() const { return m_thread_list; }
+ SpinlockProtected<Thread::ListInProcess>& thread_list() { return m_thread_list; }
+ SpinlockProtected<Thread::ListInProcess> const& thread_list() const { return m_thread_list; }
- SpinLockProtected<Thread::ListInProcess> m_thread_list;
+ SpinlockProtected<Thread::ListInProcess> m_thread_list;
FileDescriptions m_fds;
@@ -779,7 +779,7 @@ private:
OwnPtr<PerformanceEventBuffer> m_perf_event_buffer;
FutexQueues m_futex_queues;
- SpinLock<u8> m_futex_lock;
+ Spinlock<u8> m_futex_lock;
// This member is used in the implementation of ptrace's PT_TRACEME flag.
// If it is set to true, the process will stop at the next execve syscall
@@ -812,7 +812,7 @@ public:
// The second page is being used exclusively for write-protected values.
static_assert(sizeof(Process) == (PAGE_SIZE * 2));
-extern RecursiveSpinLock g_profiling_lock;
+extern RecursiveSpinlock g_profiling_lock;
MutexProtected<Process::List>& processes();