diff options
author | Tom <tomut@yahoo.com> | 2020-12-31 22:45:16 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-01 23:43:44 +0100 |
commit | a0c91719d85ca37f613acee5b7f3d16dca6b3ebd (patch) | |
tree | 5e63adbab1a1ea8ac8cc354afeca93867dce5c3a /Kernel/Thread.h | |
parent | bf9be3ec01a90fd9164162a9fdd4647c319c589a (diff) | |
download | serenity-a0c91719d85ca37f613acee5b7f3d16dca6b3ebd.zip |
Kernel: Restore thread count if thread cannot be fully created
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r-- | Kernel/Thread.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h index 7fd4ec0a22..8de108bd98 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -1216,6 +1216,7 @@ private: void donate_without_holding_big_lock(RefPtr<Thread>&, const char*); void yield_while_not_holding_big_lock(); void update_state_for_thread(Thread::State previous_state); + void drop_thread_count(bool); }; template<typename Callback> |