On Thu, Mar 01, 2018 at 04:44:32PM +0800, Peter Xu wrote: > qio_task_run_in_thread() allows main thread to run blocking operations > in the background. However it has an assumption on that it's always > working with the default context. This patch tries to allow the threaded > QIO task framework to run with non-default gcontext. > > Currently no functional change so far, so the QIOTasks are still always > running on main context. > > Signed-off-by: Peter Xu <pet...@redhat.com> > --- > include/io/task.h | 6 ++++-- > io/channel-socket.c | 9 ++++++--- > io/dns-resolver.c | 3 ++- > io/task.c | 20 ++++++++++++++++++-- > tests/test-io-task.c | 2 ++ > 5 files changed, 32 insertions(+), 8 deletions(-) >
Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|