2 * Event loop thread implementation for unit tests
4 * Copyright Red Hat Inc., 2013, 2016
7 * Stefan Hajnoczi <stefanha@redhat.com>
8 * Paolo Bonzini <pbonzini@redhat.com>
10 * This work is licensed under the terms of the GNU GPL, version 2 or later.
11 * See the COPYING file in the top-level directory.
13 #ifndef TEST_IOTHREAD_H
14 #define TEST_IOTHREAD_H
16 #include "block/aio.h"
17 #include "qemu/thread.h"
19 typedef struct IOThread IOThread;
21 IOThread *iothread_new(void);
22 void iothread_join(IOThread *iothread);
23 AioContext *iothread_get_aio_context(IOThread *iothread);