diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-22 11:54:58 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-22 12:36:35 +0200 |
commit | bed0e6d250bca6d68d2016998bdb3e5404cb0772 (patch) | |
tree | 189557e5eecda3f80ee2da4df54ea80d9c25d0d9 /Kernel/Thread.h | |
parent | a59453d4b73376693cdaf8e5d0f081bc216de1c0 (diff) | |
download | serenity-bed0e6d250bca6d68d2016998bdb3e5404cb0772.zip |
Kernel: Make Process and Thread non-copyable and non-movable
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r-- | Kernel/Thread.h | 3 |
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; |