1 #ifndef HEADER_THREAD_H
2 #define HEADER_THREAD_H 1
23 enum thread_status status;
28 struct addrspace addrspace;
32 void thread_init (const char *name, void (*) (void *aux), void *) NO_RETURN;
34 struct thread *thread_create (const char *name, void (*) (void *aux), void *);
36 bool thread_execute (const char *filename);
39 void thread_destroy (struct thread *);
40 void thread_ready (struct thread *);
42 struct thread *thread_current (void);
43 void thread_exit (void) NO_RETURN;
44 void thread_yield (void);
45 void thread_sleep (void);