Move tp.[ch] to lib/
[fio.git] / tp.h
diff --git a/tp.h b/tp.h
deleted file mode 100644 (file)
index b1aa1e2..0000000
--- a/tp.h
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef FIO_TP_H
-#define FIO_TP_H
-
-#include "flist.h"
-
-struct tp_work;
-typedef int (tp_work_fn)(struct tp_work *);
-
-struct tp_work {
-       struct flist_head list;
-       tp_work_fn *fn;
-       int wait;
-       pthread_cond_t cv;
-       pthread_mutex_t lock;
-       volatile int done;
-};
-
-struct tp_data {
-       pthread_t thread;
-       pthread_cond_t cv;
-       pthread_mutex_t lock;
-       struct flist_head work;
-       volatile int thread_exit;
-       pthread_cond_t sleep_cv;
-       volatile int sleeping;
-};
-
-extern void tp_init(struct tp_data **);
-extern void tp_exit(struct tp_data **);
-extern void tp_queue_work(struct tp_data *, struct tp_work *);
-
-#endif