1 #ifndef __LIBTHREADS_H__
2 #define __LIBTHREADS_H__
6 typedef enum thread_state {
14 void (*start_routine)();
22 int thread_create(struct thread *t, void (*start_routine)(), void *arg);
23 void thread_join(struct thread *t);
24 int thread_yield(void);
25 struct thread *thread_current(void);
27 extern void user_main(void);
29 #endif /* __LIBTHREADS_H__ */