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