summaryrefslogtreecommitdiff
path: root/Kernel/Thread.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-22 10:44:43 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-23 00:02:09 +0200
commit3e3f760808e614ca70d97294013cb58f2a0deaf5 (patch)
treec10eacc4629da8ba6e31c695ba6c4511bf3a4afc /Kernel/Thread.h
parentcd52eb3103456f36bf09d07bf1a3d3ed1fb5c5f0 (diff)
downloadserenity-3e3f760808e614ca70d97294013cb58f2a0deaf5.zip
Kernel: Fix some trivial clang-tidy warnings in Thread.{cpp,h}
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r--Kernel/Thread.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h
index 3143186680..c4ee8a04ed 100644
--- a/Kernel/Thread.h
+++ b/Kernel/Thread.h
@@ -151,7 +151,6 @@ class Thread
friend class Mutex;
friend class Process;
- friend class ProtectedProcessBase;
friend class Scheduler;
friend struct ThreadReadyQueue;
@@ -161,8 +160,6 @@ public:
return Processor::current_thread();
}
- static void initialize();
-
static KResultOr<NonnullRefPtr<Thread>> try_create(NonnullRefPtr<Process>);
~Thread();
@@ -253,11 +250,6 @@ public:
}
}
- [[nodiscard]] bool timed_out() const
- {
- return m_type == InterruptedByTimeout;
- }
-
private:
Type m_type;
};
@@ -696,7 +688,7 @@ public:
};
typedef Vector<FDInfo, FD_SETSIZE> FDVector;
- SelectBlocker(FDVector& fds);
+ explicit SelectBlocker(FDVector& fds);
virtual ~SelectBlocker();
virtual bool unblock(bool, void*) override;
@@ -750,7 +742,7 @@ public:
friend class WaitBlocker;
public:
- WaitBlockCondition(Process& process)
+ explicit WaitBlockCondition(Process& process)
: m_process(process)
{
}
@@ -1296,7 +1288,7 @@ private:
mutable RecursiveSpinlock m_block_lock;
NonnullRefPtr<Process> m_process;
ThreadID m_tid { -1 };
- ThreadRegisters m_regs;
+ ThreadRegisters m_regs {};
DebugRegisterState m_debug_register_state {};
TrapFrame* m_current_trap { nullptr };
u32 m_saved_critical { 1 };