]> git.proxmox.com Git - mirror_qemu.git/commit - iothread.c
iothread: provide helpers for internal use
authorPeter Xu <peterx@redhat.com>
Thu, 28 Sep 2017 02:59:55 +0000 (10:59 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 3 Oct 2017 18:26:15 +0000 (14:26 -0400)
commit0173e21b617d3de1fcfa917e329bb9194ab332a4
tree44104376f78bfd491fc3ea9bab488a2c771d54d6
parent7c47c4ead75d0b733ee8f2f51fd1de0644cc1308
iothread: provide helpers for internal use

IOThread is a general framework that contains IO loop environment and a
real thread behind.  It's also good to be used internally inside qemu.
Provide some helpers for it to create iothreads to be used internally.

Put all the internal used iothreads into the internal object container.

Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-id: 20170928025958.1420-3-peterx@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/sysemu/iothread.h
iothread.c