[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 "object/process.h"
@ -28,7 +29,7 @@ class Scheduler {
bool enabled_ = false;
glcr::RefPtr<Thread> current_thread_;
LinkedList<glcr::RefPtr<Thread>> runnable_threads_;
glcr::IntrusiveList<Thread> runnable_threads_;
glcr::RefPtr<Thread> sleep_thread_;