mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
Kernel: Briefly resume stopped threads when being killed
We need to briefly put Stopped threads back into Running state so that the kernel stacks can get cleaned up when they're being killed. Fixes #3130
This commit is contained in:
parent
2614ef550c
commit
72960fedc6
2 changed files with 33 additions and 13 deletions
|
@ -270,6 +270,8 @@ public:
|
|||
void did_schedule() { ++m_times_scheduled; }
|
||||
u32 times_scheduled() const { return m_times_scheduled; }
|
||||
|
||||
void resume_from_stopped();
|
||||
|
||||
bool is_stopped() const { return m_state == Stopped; }
|
||||
bool is_blocked() const { return m_state == Blocked; }
|
||||
bool has_blocker() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue