thread-pool.h (737e150e89c44c6b33691a627e24bac7fb58f349) thread-pool.h (1de7afc984b49af164e2619e6850b9732b173b34)
1/*
2 * QEMU block layer thread pool
3 *
4 * Copyright IBM, Corp. 2008
5 * Copyright Red Hat, Inc. 2012
6 *
7 * Authors:
8 * Anthony Liguori <aliguori@us.ibm.com>

--- 5 unchanged lines hidden (view full) ---

14 * Contributions after 2012-01-13 are licensed under the terms of the
15 * GNU GPL, version 2 or (at your option) any later version.
16 */
17
18#ifndef QEMU_THREAD_POOL_H
19#define QEMU_THREAD_POOL_H 1
20
21#include "qemu-common.h"
1/*
2 * QEMU block layer thread pool
3 *
4 * Copyright IBM, Corp. 2008
5 * Copyright Red Hat, Inc. 2012
6 *
7 * Authors:
8 * Anthony Liguori <aliguori@us.ibm.com>

--- 5 unchanged lines hidden (view full) ---

14 * Contributions after 2012-01-13 are licensed under the terms of the
15 * GNU GPL, version 2 or (at your option) any later version.
16 */
17
18#ifndef QEMU_THREAD_POOL_H
19#define QEMU_THREAD_POOL_H 1
20
21#include "qemu-common.h"
22#include "qemu-queue.h"
23#include "qemu-thread.h"
22#include "qemu/queue.h"
23#include "qemu/thread.h"
24#include "block/coroutine.h"
25#include "block/block_int.h"
26
27typedef int ThreadPoolFunc(void *opaque);
28
29BlockDriverAIOCB *thread_pool_submit_aio(ThreadPoolFunc *func, void *arg,
30 BlockDriverCompletionFunc *cb, void *opaque);
31int coroutine_fn thread_pool_submit_co(ThreadPoolFunc *func, void *arg);
32void thread_pool_submit(ThreadPoolFunc *func, void *arg);
33
34#endif
24#include "block/coroutine.h"
25#include "block/block_int.h"
26
27typedef int ThreadPoolFunc(void *opaque);
28
29BlockDriverAIOCB *thread_pool_submit_aio(ThreadPoolFunc *func, void *arg,
30 BlockDriverCompletionFunc *cb, void *opaque);
31int coroutine_fn thread_pool_submit_co(ThreadPoolFunc *func, void *arg);
32void thread_pool_submit(ThreadPoolFunc *func, void *arg);
33
34#endif