Thread reaper
include/thread/reaper.h View source View on GitHubStructs
Section titled “Structs”reaper_thread
Section titled “reaper_thread”struct reaper_thread {
struct locked_list list;
struct semaphore sem;
struct thread *thread;
}; Functions
Section titled “Functions”reaper_enqueue
Section titled “reaper_enqueue”void reaper_enqueue(struct thread *t); reaper_thread_main
Section titled “reaper_thread_main”void reaper_thread_main(void *nothing); reaper_init
Section titled “reaper_init”void reaper_init(void); reaper_get_reaped_thread_count
Section titled “reaper_get_reaped_thread_count”uint64_t reaper_get_reaped_thread_count(void);