kernel: add thread_wait, thread_block and mtx

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-08-12 14:59:34 -04:00
commit 9c50a1df92
Signed by: michaelsshaw
GPG key ID: 5A5E0FB20708A9E7
6 changed files with 49 additions and 3 deletions

View file

@ -13,6 +13,7 @@
#define PROC_STATE_RUNNING 0
#define PROC_STATE_WAITING 1
#define PROC_STATE_DNS 2 /* do not schedule */
#define PROC_STATE_BLOCKED 3
typedef u64 pid_t;
typedef u64 tid_t;