diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-18 20:07:00 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-18 20:28:04 +0200 |
commit | 64a4f3df6978b3cf71737b897385576ee2afb4bd (patch) | |
tree | ea0ee0fc1258fb3709664c306ced45778ac7a7d6 /Kernel/Thread.h | |
parent | 8c7d5abdc43d7a0ccd76f818e10f0c6194c371ee (diff) | |
download | serenity-64a4f3df6978b3cf71737b897385576ee2afb4bd.zip |
Kernel: Add a Thread::set_thread_list() helper to keep logic in one place.
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 ecd058c2a6..11091f6d3b 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -134,6 +134,7 @@ public: Thread* m_next { nullptr }; InlineLinkedList<Thread>* thread_list() { return m_thread_list; } + void set_thread_list(InlineLinkedList<Thread>*); template<typename Callback> static void for_each_in_state(State, Callback); template<typename Callback> static void for_each_living(Callback); |