diff options
author | Tom <tomut@yahoo.com> | 2020-08-14 10:24:31 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-15 00:15:00 +0200 |
commit | 72960fedc60f12a8f34366557fec808c8ce82f12 (patch) | |
tree | d343bd7ee59c63b81e096420bac395c0eab658b5 /Kernel/Thread.h | |
parent | 2614ef550c7b94dbe7c7e0b96622380d1186aea1 (diff) | |
download | serenity-72960fedc60f12a8f34366557fec808c8ce82f12.zip |
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
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r-- | Kernel/Thread.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h index 75d13371b7..3ab9fb3ca9 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -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 |