summaryrefslogtreecommitdiff
path: root/Kernel/Process.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/Process.h
parenta59453d4b73376693cdaf8e5d0f081bc216de1c0 (diff)
downloadserenity-bed0e6d250bca6d68d2016998bdb3e5404cb0772.zip
Kernel: Make Process and Thread non-copyable and non-movable
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h3
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;