1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

Kernel: Make Process and Thread non-copyable and non-movable

This commit is contained in:
Andreas Kling 2020-04-22 11:54:58 +02:00
parent a59453d4b7
commit bed0e6d250
2 changed files with 6 additions and 0 deletions

View file

@ -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;