7 typedef int (tp_work_fn)(struct tp_work *);
10 struct flist_head list;
23 struct flist_head work;
24 volatile int thread_exit;
25 pthread_cond_t sleep_cv;
26 volatile int sleeping;
29 extern void tp_init(struct tp_data **);
30 extern void tp_exit(struct tp_data **);
31 extern void tp_queue_work(struct tp_data *, struct tp_work *);