6 #include "libthreads.h"
8 typedef enum thread_state {
17 Thread(thrd_t *t, void (*func)(), void *a);
22 thread_state get_state() { return state; }
23 void set_state(thread_state s) { state = s; }
25 void set_id(thread_id_t i) { *user_thread = i; }
26 thrd_t get_thrd_t() { return *user_thread; }
30 void (*start_routine)();
38 Thread *thread_current();
40 static inline thread_id_t thrd_to_id(thrd_t t)
45 #endif /* __THREADS_H__ */