xref: /openbmc/qemu/tests/unit/iothread.h (revision f0984d40)
1 /*
2  * Event loop thread implementation for unit tests
3  *
4  * Copyright Red Hat Inc., 2013, 2016
5  *
6  * Authors:
7  *  Stefan Hajnoczi   <stefanha@redhat.com>
8  *  Paolo Bonzini     <pbonzini@redhat.com>
9  *
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.
12  */
13 #ifndef TEST_IOTHREAD_H
14 #define TEST_IOTHREAD_H
15 
16 #include "block/aio.h"
17 #include "qemu/thread.h"
18 
19 typedef struct IOThread IOThread;
20 
21 IOThread *iothread_new(void);
22 void iothread_join(IOThread *iothread);
23 AioContext *iothread_get_aio_context(IOThread *iothread);
24 
25 #endif
26