1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:47:45 +00:00

Kernel: Fix broken destruction order for Process/Thread.

This commit is contained in:
Andreas Kling 2019-03-24 01:20:35 +01:00
parent b6cd66c3b5
commit 5713c3a0cb
4 changed files with 7 additions and 4 deletions

View file

@ -53,8 +53,7 @@ public:
Ring3 = 3,
};
// FIXME(Thread): Is this really how this should work?
bool is_dead() const { return main_thread().state() == Thread::State::Dead; }
bool is_dead() const { return m_dead; }
Thread::State state() const { return main_thread().state(); }
@ -311,6 +310,7 @@ private:
HashTable<gid_t> m_gids;
bool m_being_inspected { false };
bool m_dead { false };
int m_next_tid { 0 };
};