mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
Kernel: Fix some trivial clang-tidy warnings in Thread.{cpp,h}
This commit is contained in:
parent
cd52eb3103
commit
3e3f760808
2 changed files with 11 additions and 22 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue