瀏覽代碼

Kernel: Make Thread::m_block_timer a NonnullRefPtr

Every thread has a block timer, so let's encode that in the type.
Andreas Kling 3 年之前
父節點
當前提交
96909f5200
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Kernel/Thread.h

+ 1 - 1
Kernel/Thread.h

@@ -1371,7 +1371,7 @@ private:
     Atomic<bool> m_have_any_unmasked_pending_signals { false };
     Atomic<u32> m_nested_profiler_calls { 0 };
 
-    RefPtr<Timer> m_block_timer;
+    NonnullRefPtr<Timer> m_block_timer;
 
     bool m_is_profiling_suppressed { false };