1 #ifndef __LIBTHREADS_H__
2 #define __LIBTHREADS_H__
8 #define DBG() do { printf("Here: %s, L%d\n", __func__, __LINE__); } while (0)
9 #define DEBUG(fmt, ...) printf(fmt, ##__VA_ARGS__)
12 #define DEBUG(fmt, ...)
16 void (*start_routine);
24 int thread_create(struct thread *t, void (*start_routine), void *arg);
25 void thread_start(struct thread *t);
27 #endif /* __LIBTHREADS_H__ */