1 #ifndef HEADER_THREAD_H
2 #define HEADER_THREAD_H 1
22 enum thread_status status;
27 struct addrspace addrspace;
31 void thread_init (void);
33 struct thread *thread_create (const char *name,
34 void (*function) (void *aux), void *aux);
35 void thread_destroy (struct thread *);
36 struct thread *thread_current (void);
39 bool thread_execute (const char *filename);
42 void thread_start (struct thread *);
43 void thread_ready (struct thread *);
44 void thread_exit (void) NO_RETURN;
46 void thread_yield (void);
47 void thread_sleep (void);
49 void thread_self_test (void);