mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
Kernel: Add a Thread::set_thread_list() helper to keep logic in one place.
This commit is contained in:
parent
8c7d5abdc4
commit
64a4f3df69
2 changed files with 13 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue