1 #ifndef __LIBTHREADS_H__
2 #define __LIBTHREADS_H__
10 #define DEBUG(fmt, ...) do { printf("*** %25s(): line %-4d *** " fmt, __func__, __LINE__, ##__VA_ARGS__); } while (0)
11 #define DBG() DEBUG("\n");
13 #define DEBUG(fmt, ...)
18 void (*start_routine);
26 int thread_create(struct thread *t, void (*start_routine), void *arg);
27 void thread_join(struct thread *t);
28 struct thread *thread_current(void);
30 #endif /* __LIBTHREADS_H__ */