From bed0e6d250bca6d68d2016998bdb3e5404cb0772 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 22 Apr 2020 11:54:58 +0200 Subject: Kernel: Make Process and Thread non-copyable and non-movable --- Kernel/Thread.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Kernel/Thread.h') 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; -- cgit v1.2.3