From f6ff28ad8eb5e88a1985706bfc94657704e9c3f4 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 22 Mar 2022 23:50:57 -0700 Subject: Make arbitrary amounts of priorities Without affecting maximum static thread count --- include/sys/schedule.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/sys/schedule.h b/include/sys/schedule.h index cfb4813..1e3b0d7 100644 --- a/include/sys/schedule.h +++ b/include/sys/schedule.h @@ -2,10 +2,10 @@ #define SYS_SCHEDULE_H #include -#define TQUEUE_MAX 0x400 +#define TQUEUE_MAX 0x2000 #define STACK_SIZE 0x4000 -#define PRIORITIES 8 -#define MAX_THREADS TQUEUE_MAX*PRIORITIES +#define PRIORITIES 20 +#define MAX_THREADS TQUEUE_MAX enum ThreadStatus { THREAD_READY = 0, -- cgit v1.2.1