mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-01 07:35:02 +03:00
Kernel: Make Process and Thread non-copyable and non-movable
This commit is contained in:
parent
a59453d4b7
commit
bed0e6d250
Notes:
sideshowbarker
2024-07-19 07:23:54 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/bed0e6d250b
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user