aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2014-03-20 15:06:31 +0100
committerKevin Wolf <kwolf@redhat.com>2014-04-04 20:48:02 +0200
commit8c2664d86917c987944f1ca9770d1f7bbbf8eca8 (patch)
tree617e3ec3b74b879a21630460bfd3db403d95bce9 /include
parent4d1cb6e6f51b0d8405f701806a203a73e7431fe5 (diff)
downloadqemu-8c2664d86917c987944f1ca9770d1f7bbbf8eca8.zip
qemu-8c2664d86917c987944f1ca9770d1f7bbbf8eca8.tar.gz
qemu-8c2664d86917c987944f1ca9770d1f7bbbf8eca8.tar.bz2
iothread: make IOThread struct definition public
Make the IOThread struct definition public so objects can be embedded in parent structs. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Tested-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sysemu/iothread.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/sysemu/iothread.h b/include/sysemu/iothread.h
index a32214a..7c01a61 100644
--- a/include/sysemu/iothread.h
+++ b/include/sysemu/iothread.h
@@ -15,10 +15,20 @@
#define IOTHREAD_H
#include "block/aio.h"
+#include "qemu/thread.h"
#define TYPE_IOTHREAD "iothread"
-typedef struct IOThread IOThread;
+typedef struct {
+ Object parent_obj;
+
+ QemuThread thread;
+ AioContext *ctx;
+ QemuMutex init_done_lock;
+ QemuCond init_done_cond; /* is thread initialization done? */
+ bool stopping;
+ int thread_id;
+} IOThread;
#define IOTHREAD(obj) \
OBJECT_CHECK(IOThread, obj, TYPE_IOTHREAD)