summaryrefslogtreecommitdiff
path: root/Kernel/FutexQueue.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-08-19 17:26:07 +0200
committerAndreas Kling <kling@serenityos.org>2022-08-20 17:15:52 +0200
commite475263113387404e63cdc3666391934604eb6e7 (patch)
tree5d15d4f41a7811f58171b6e8bdd6ae014e2bea7d /Kernel/FutexQueue.h
parent4889eb019a47478e50e1876f9584356e957e4ea4 (diff)
downloadserenity-e475263113387404e63cdc3666391934604eb6e7.zip
AK+Kernel: Add AK::AtomicRefCounted and use everywhere in the kernel
Instead of having two separate implementations of AK::RefCounted, one for userspace and one for kernelspace, there is now RefCounted and AtomicRefCounted.
Diffstat (limited to 'Kernel/FutexQueue.h')
-rw-r--r--Kernel/FutexQueue.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Kernel/FutexQueue.h b/Kernel/FutexQueue.h
index c2c3c2c138..4ea51ac579 100644
--- a/Kernel/FutexQueue.h
+++ b/Kernel/FutexQueue.h
@@ -6,16 +6,14 @@
#pragma once
-#include <AK/Atomic.h>
-#include <AK/RefCounted.h>
+#include <AK/AtomicRefCounted.h>
#include <Kernel/Locking/Spinlock.h>
-#include <Kernel/Memory/VMObject.h>
#include <Kernel/Thread.h>
namespace Kernel {
class FutexQueue final
- : public RefCounted<FutexQueue>
+ : public AtomicRefCounted<FutexQueue>
, public Thread::BlockerSet {
public:
FutexQueue();