Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-5.1-pull-request...
[qemu.git] / tests / iothread.h
blob4877cea6a31e83a90318b4e617cd28e1aef687f0
1 /*
2 * Event loop thread implementation for unit tests
4 * Copyright Red Hat Inc., 2013, 2016
6 * Authors:
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);
25 #endif