summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2021-09-21 17:48:52 +0200
committerdzwdz2021-09-21 17:48:52 +0200
commit2373680d99372b9e7cdecf1c8d4b0a7366eb3cfb (patch)
tree93069f4e46428d6bb1055d1c999c527e87f49a35 /src/kernel/proc.h
parentd34bd9a45440be2ef65d24619af5505b8c05c229 (diff)
refactor `await_finish` into `process_try2collect`
the new name is terrible, but at least the function now has a clear purpose
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index 0e02d27..82bb59a 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -55,3 +55,7 @@ _Noreturn void process_switch_any(void); // switches to any running process
struct process *process_find(enum process_state);
handle_t process_find_handle(struct process *proc); // finds the first free handle
+
+/** Tries to transistion from PS_DEAD to PS_DEADER.
+ * @return a nonnegative length of the quit message if successful, a negative val otherwise*/
+int process_try2collect(struct process *dead);