From 96909f5200f524ce0157f12df1a0c4bba103fe8b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 23 Aug 2021 13:14:17 +0200 Subject: [PATCH] Kernel: Make Thread::m_block_timer a NonnullRefPtr Every thread has a block timer, so let's encode that in the type. --- Kernel/Thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Thread.h b/Kernel/Thread.h index c15c14ecd4a..5844aed347b 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -1371,7 +1371,7 @@ private: Atomic m_have_any_unmasked_pending_signals { false }; Atomic m_nested_profiler_calls { 0 }; - RefPtr m_block_timer; + NonnullRefPtr m_block_timer; bool m_is_profiling_suppressed { false };