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