Revision f7311ccc include/block/thread-pool.h
b/include/block/thread-pool.h | ||
---|---|---|
26 | 26 |
|
27 | 27 |
typedef int ThreadPoolFunc(void *opaque); |
28 | 28 |
|
29 |
typedef struct ThreadPool ThreadPool; |
|
30 |
|
|
31 |
ThreadPool *thread_pool_new(struct AioContext *ctx); |
|
32 |
void thread_pool_free(ThreadPool *pool); |
|
33 |
|
|
29 | 34 |
BlockDriverAIOCB *thread_pool_submit_aio(ThreadPoolFunc *func, void *arg, |
30 | 35 |
BlockDriverCompletionFunc *cb, void *opaque); |
31 | 36 |
int coroutine_fn thread_pool_submit_co(ThreadPoolFunc *func, void *arg); |
Also available in: Unified diff