summaryrefslogtreecommitdiff
path: root/Kernel/Thread.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-18 20:07:00 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-18 20:28:04 +0200
commit64a4f3df6978b3cf71737b897385576ee2afb4bd (patch)
treeea0ee0fc1258fb3709664c306ced45778ac7a7d6 /Kernel/Thread.h
parent8c7d5abdc43d7a0ccd76f818e10f0c6194c371ee (diff)
downloadserenity-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.h1
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);