X-Git-Url: https://git.wirehaze.ovh/ppos.git/blobdiff_plain/f0f504ecf7d69d520311484390142913b4b8bdf0..HEAD:/ppos/kernel/tcb.h diff --git a/ppos/kernel/tcb.h b/ppos/kernel/tcb.h index d93897a..230bcdf 100644 --- a/ppos/kernel/tcb.h +++ b/ppos/kernel/tcb.h @@ -9,13 +9,23 @@ #include "ctx.h" -// Task Control Block (TCB), infos sobre uma tarefa -struct task_t +/* TODO */ +enum task_status { - int id; // identificador da tarefa - char *name; // nome da tarefa - struct ctx_t context; // contexto armazenado da tarefa - // ... + STATUS_READY, + STATUS_RUNNING, + STATUS_SUSPENDED, + STATUS_TERMINATED +}; + +/* Task Control Block. */ +struct task_t +{/* TODO comment fields. */ + int id; + char *name; + enum task_status status; + struct task_t *parent; + struct ctx_t context; }; #endif