1 #ifndef HEADER_THREAD_H
2 #define HEADER_THREAD_H 1
17 enum thread_status status;
20 struct list_elem rq_elem;
23 void thread_init (void);
25 struct thread *thread_create (const char *name,
26 void (*function) (void *aux), void *aux);
27 void thread_destroy (struct thread *);
28 struct thread *thread_current (void);
30 void thread_start (struct thread *);
31 void thread_ready (struct thread *);
32 void thread_exit (void);
34 void thread_yield (void);
35 void thread_sleep (void);
36 void thread_schedule (void);