summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-31 01:46:27 -0400
committerIan Moffett <ian@osmora.org>2025-05-31 01:52:50 -0400
commit8aaa6cc38ae8f2fde486afcac6f9e40dd832a468 (patch)
treee24144f2b072a7253513b235c104a74bd6fd8551 /sys/include
parentd3d30751c49cadf015c4ebb5eaebe6dcefd982b4 (diff)
kernel: proc: Add PROC_SLEEP to pause threads
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/proc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/sys/proc.h b/sys/include/sys/proc.h
index 6318c06..37cf413 100644
--- a/sys/include/sys/proc.h
+++ b/sys/include/sys/proc.h
@@ -84,6 +84,7 @@ struct proc {
#define PROC_LEAFQ BIT(3) /* Leaf queue is active */
#define PROC_WAITED BIT(4) /* Being waited on by parent */
#define PROC_KTD BIT(5) /* Kernel thread */
+#define PROC_SLEEP BIT(6) /* Thread execution paused */
struct proc *this_td(void);
struct proc *get_child(struct proc *cur, pid_t pid);