[zion] Move the scheduler to the IntrusiveList for runnable threads

This commit is contained in:
Drew Galbraith 2023-06-21 16:28:42 -07:00
parent 25737d9377
commit a99096b0ff
3 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,6 @@
#pragma once
#include <glacier/container/intrusive_list.h>
#include <glacier/memory/ref_ptr.h>
#include <stdint.h>
@ -14,7 +15,7 @@ struct KernelObjectTag<Thread> {
static const uint64_t type = KernelObject::THREAD;
};
class Thread : public KernelObject {
class Thread : public KernelObject, public glcr::IntrusiveListNode<Thread> {
public:
uint64_t TypeTag() override { return KernelObject::THREAD; }
enum State {