aboutsummaryrefslogtreecommitdiff
path: root/include/block/thread-pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/block/thread-pool.h')
-rw-r--r--include/block/thread-pool.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/block/thread-pool.h b/include/block/thread-pool.h
index 200703e35f..e1453c685d 100644
--- a/include/block/thread-pool.h
+++ b/include/block/thread-pool.h
@@ -26,6 +26,11 @@
typedef int ThreadPoolFunc(void *opaque);
+typedef struct ThreadPool ThreadPool;
+
+ThreadPool *thread_pool_new(struct AioContext *ctx);
+void thread_pool_free(ThreadPool *pool);
+
BlockDriverAIOCB *thread_pool_submit_aio(ThreadPoolFunc *func, void *arg,
BlockDriverCompletionFunc *cb, void *opaque);
int coroutine_fn thread_pool_submit_co(ThreadPoolFunc *func, void *arg);