From 8c2664d86917c987944f1ca9770d1f7bbbf8eca8 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 20 Mar 2014 15:06:31 +0100 Subject: 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 Reviewed-by: Paolo Bonzini Tested-by: Christian Borntraeger Signed-off-by: Kevin Wolf --- include/sysemu/iothread.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include/sysemu') 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) -- cgit v1.1