1 #ifndef HEADER_THREAD_H
2 #define HEADER_THREAD_H 1
22 enum thread_status status;
27 struct addrspace addrspace;
31 void thread_init (const char *name, void (*) (void *aux), void *) NO_RETURN;
32 struct thread *thread_create (const char *name, void (*) (void *aux), void *);
33 void thread_destroy (struct thread *);
34 struct thread *thread_current (void);
37 bool thread_execute (const char *filename);
40 void thread_ready (struct thread *);
41 void thread_exit (void) NO_RETURN;
43 void thread_yield (void);
44 void thread_sleep (void);