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/Process.h | |
parent | a59453d4b73376693cdaf8e5d0f081bc216de1c0 (diff) | |
download | serenity-bed0e6d250bca6d68d2016998bdb3e5404cb0772.zip |
Kernel: Make Process and Thread non-copyable and non-movable
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r-- | Kernel/Process.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h index 789e3daf96..bd90430c27 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -98,6 +98,9 @@ struct UnveiledPath { }; class Process : public InlineLinkedListNode<Process> { + AK_MAKE_NONCOPYABLE(Process); + AK_MAKE_NONMOVABLE(Process); + friend class InlineLinkedListNode<Process>; friend class Thread; |