mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
Added support for pagers that fault to suspend and become zombies along with all the threads that they manage. Zombie killing is to be done at a later time, from this special zombie queue. The implementation works same as a suspension, with the added action that the thread is moved to a queue in kernel container.
19 lines
388 B
C
19 lines
388 B
C
/*
|
|
* Copyright (C) 2007 Bahadir Balban
|
|
*/
|
|
#ifndef __THREAD_H__
|
|
#define __THREAD_H__
|
|
|
|
#include <l4/generic/tcb.h>
|
|
|
|
/* Thread id creation and deleting */
|
|
void thread_id_pool_init(void);
|
|
int thread_id_new(void);
|
|
int thread_id_del(int tid);
|
|
|
|
void thread_destroy_current(void);
|
|
int thread_destroy(struct task_ids *ids);
|
|
void thread_make_zombie(struct ktcb *task);
|
|
|
|
#endif /* __THREAD_H__ */
|