feat: added reaper and suicide support

This commit is contained in:
2021-08-06 22:00:00 +02:00
parent ee4338fedd
commit be71f9a7e9
7 changed files with 87 additions and 18 deletions

View File

@@ -19,13 +19,13 @@ void task_start_first();
void task_switch_next();
uint32_t task_spawn(task_entrypoint, void *entry_data);
pid_t task_spawn(task_entrypoint, void *entry_data);
void task_end(uint32_t tid);
void task_end(pid_t tid);
void task_suspend();
uint32_t task_get_current_tid();
pid_t task_get_current_tid();
void task_signal(uint32_t tid);