From 8000e8a0808230f092f0e5aa9ec18c204c954f77 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 22 Aug 2021 15:34:16 +0200 Subject: [PATCH] Kernel: Mark Thread::Blocker leaf subclasses final --- Kernel/Net/Routing.cpp | 2 +- Kernel/Thread.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Kernel/Net/Routing.cpp b/Kernel/Net/Routing.cpp index b75e57d1a3b..811faf9f907 100644 --- a/Kernel/Net/Routing.cpp +++ b/Kernel/Net/Routing.cpp @@ -18,7 +18,7 @@ namespace Kernel { static Singleton>> s_arp_table; -class ARPTableBlocker : public Thread::Blocker { +class ARPTableBlocker final : public Thread::Blocker { public: ARPTableBlocker(IPv4Address ip_addr, Optional& addr); diff --git a/Kernel/Thread.h b/Kernel/Thread.h index e2e182718a9..c78193c7031 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -525,7 +525,7 @@ public: bool m_should_block { true }; }; - class QueueBlocker : public Blocker { + class QueueBlocker final : public Blocker { public: explicit QueueBlocker(WaitQueue&, StringView block_reason = {}); virtual ~QueueBlocker(); @@ -547,7 +547,7 @@ public: bool m_did_unblock { false }; }; - class FutexBlocker : public Blocker { + class FutexBlocker final : public Blocker { public: explicit FutexBlocker(FutexQueue&, u32); virtual ~FutexBlocker();