aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-11 09:27:16 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-11 09:27:16 +0100
commitaa5e2760711c092e1235105ebf097ac594512370 (patch)
treed191ead558d5913cc51df8734398c7fe981d80e9 /src/kernel/include
parent0e50ada984473de20ba47c2ebdbe36b3dad78dd1 (diff)
downloadkogata-aa5e2760711c092e1235105ebf097ac594512370.tar.gz
kogata-aa5e2760711c092e1235105ebf097ac594512370.zip
Fix process exiting.
Diffstat (limited to 'src/kernel/include')
-rw-r--r--src/kernel/include/process.h2
-rw-r--r--src/kernel/include/thread.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/include/process.h b/src/kernel/include/process.h
index d4fcfc3..ddeac90 100644
--- a/src/kernel/include/process.h
+++ b/src/kernel/include/process.h
@@ -84,7 +84,7 @@ void process_exit(process_t *p, int status, int exit_code); // exit specified p
void current_process_exit(int status, int exit_code);
bool process_new_thread(process_t *p, proc_entry_t entry, void* sp);
-void process_thread_deleted(thread_t *t); // called by threading code when a thread exits
+void process_thread_exited(thread_t *t); // called by threading code when a thread exits
process_t *process_find_child(process_t *p, int pid);
void process_get_status(process_t *p, proc_status_t *st);
diff --git a/src/kernel/include/thread.h b/src/kernel/include/thread.h
index f9df0ea..4b140fa 100644
--- a/src/kernel/include/thread.h
+++ b/src/kernel/include/thread.h
@@ -44,6 +44,7 @@ typedef void (*entry_t)(void*);
void threading_setup(entry_t cont, void* data); // never returns
thread_t *new_thread(entry_t entry, void* data); // thread is PAUSED, and must be started with start_thread
void start_thread(thread_t *t);
+void delete_thread(thread_t *t);
void irq0_handler(registers_t *regs, int crit_level);