4 * Copyright Red Hat Inc., 2013
7 * Stefan Hajnoczi <stefanha@redhat.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
17 #include "block/aio.h"
18 #include "qemu/thread.h"
20 #define TYPE_IOTHREAD "iothread"
27 GMainContext
*worker_context
;
30 QemuMutex init_done_lock
;
31 QemuCond init_done_cond
; /* is thread initialization done? */
35 /* AioContext poll parameters */
41 #define IOTHREAD(obj) \
42 OBJECT_CHECK(IOThread, obj, TYPE_IOTHREAD)
44 char *iothread_get_id(IOThread
*iothread
);
45 AioContext
*iothread_get_aio_context(IOThread
*iothread
);
46 void iothread_stop_all(void);
47 GMainContext
*iothread_get_g_main_context(IOThread
*iothread
);
49 #endif /* IOTHREAD_H */