sched: handle thread death in a less hacky way

This commit is contained in:
Matheus
2022-11-21 20:12:47 -03:00
parent e550d94c91
commit 8d8b319319
3 changed files with 43 additions and 13 deletions
+1
View File
@@ -18,6 +18,7 @@
#define THREAD_STATE_BLOCKED 2
#define THREAD_STATE_BLOCKED_INTR 3
#define THREAD_STATE_DEAD 4
#define THREAD_STATE_DESTROYED 5
#define PROC_STATE_NORMAL 0
#define PROC_STATE_ZOMBIE 1