]> git.proxmox.com Git - qemu.git/blobdiff - include/block/thread-pool.h
threadpool: add thread_pool_new() and thread_pool_free()
[qemu.git] / include / block / thread-pool.h
index 200703e35f8f1f7f000d43c51ec0bc7f898f6720..e1453c685d27bdb4596fd08524cdea240628b16c 100644 (file)
 
 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);