aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-06 23:48:03 -0800
committerChristian Cunningham <cc@localhost>2022-01-06 23:48:03 -0800
commit6faa08e0a5cb7b36f34c0d0527bb3bbc21aa4d82 (patch)
tree44df7e63a11c68af9a42565e2d474c78f4b03946 /include
parentaa8d179b2df2ce031a84172a70be88697dfda7c4 (diff)
Update Thread Flags on Switch
Diffstat (limited to 'include')
-rw-r--r--include/sys/schedule.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/sys/schedule.h b/include/sys/schedule.h
index c3c748b..e10018c 100644
--- a/include/sys/schedule.h
+++ b/include/sys/schedule.h
@@ -6,12 +6,12 @@
#include <sys/core.h>
enum ThreadStatus {
- THREAD_READY,
- THREAD_WAITING,
- THREAD_WAITING_FOR_MUTEX,
- THREAD_STACK_ERROR,
- THREAD_RUNNING,
- THREAD_FINISHED,
+ THREAD_READY = 0,
+ THREAD_RUNNING = 1,
+ THREAD_WAITING = 2,
+ THREAD_WAITING_FOR_MUTEX = 3,
+ THREAD_FINISHED = 4,
+ THREAD_STACK_ERROR = 5,
};
struct cpu_context {