mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
kernel: use list.h for scheduling run queues
This commit is contained in:
@@ -20,15 +20,12 @@
|
||||
#define SCHED_SLEEP_TIME_LIMIT_CPU_US 1000
|
||||
|
||||
typedef struct {
|
||||
struct {
|
||||
thread_t *ins;
|
||||
thread_t *run;
|
||||
} queues[SCHED_RUN_QUEUE_SIZE];
|
||||
list_t queues[SCHED_RUN_QUEUE_SIZE];
|
||||
bitmap_t thread_bitmap;
|
||||
} sched_run_queue_t;
|
||||
|
||||
typedef struct {
|
||||
thread_t *queues[SCHED_RUN_QUEUE_SIZE];
|
||||
list_t queues[SCHED_RUN_QUEUE_SIZE];
|
||||
int ins;
|
||||
int run;
|
||||
size_t thread_count;
|
||||
|
||||
Reference in New Issue
Block a user