summaryrefslogtreecommitdiff
path: root/Kernel/Thread.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-22 11:54:58 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-22 12:36:35 +0200
commitbed0e6d250bca6d68d2016998bdb3e5404cb0772 (patch)
tree189557e5eecda3f80ee2da4df54ea80d9c25d0d9 /Kernel/Thread.h
parenta59453d4b73376693cdaf8e5d0f081bc216de1c0 (diff)
downloadserenity-bed0e6d250bca6d68d2016998bdb3e5404cb0772.zip
Kernel: Make Process and Thread non-copyable and non-movable
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r--Kernel/Thread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h
index 34de549d66..f1ded94c08 100644
--- a/Kernel/Thread.h
+++ b/Kernel/Thread.h
@@ -64,6 +64,9 @@ struct ThreadSpecificData {
#define THREAD_PRIORITY_MAX 99
class Thread {
+ AK_MAKE_NONCOPYABLE(Thread);
+ AK_MAKE_NONMOVABLE(Thread);
+
friend class Process;
friend class Scheduler;