[Zion] Move existing proc/thread cleanup calls to the cleanup thread.
This commit is contained in:
parent
8bedc80caf
commit
8fb5b7c03c
6 changed files with 67 additions and 34 deletions
|
|
@ -55,7 +55,7 @@ class Thread : public KernelObject, public glcr::IntrusiveListNode<Thread> {
|
|||
|
||||
// State Management.
|
||||
State GetState() { return state_; };
|
||||
void SetState(State state) { state_ = state; }
|
||||
void SetState(State state);
|
||||
bool IsDying() { return state_ == CLEANUP || state_ == FINISHED; }
|
||||
|
||||
// Exits this thread.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue