mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
qio: non-default context for async conn
We have worked on qio_task_run_in_thread() already. Further, let all the qio channel APIs use that context. Signed-off-by: Peter Xu <peterx@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
a17536c594
commit
8005fdd8fa
5 changed files with 27 additions and 14 deletions
|
@ -867,7 +867,7 @@ static gboolean socket_reconnect_timeout(gpointer opaque)
|
|||
tcp_chr_set_client_ioc_name(chr, sioc);
|
||||
qio_channel_socket_connect_async(sioc, s->addr,
|
||||
qemu_chr_socket_connected,
|
||||
chr, NULL);
|
||||
chr, NULL, NULL);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -951,7 +951,7 @@ static void qmp_chardev_open_socket(Chardev *chr,
|
|||
tcp_chr_set_client_ioc_name(chr, sioc);
|
||||
qio_channel_socket_connect_async(sioc, s->addr,
|
||||
qemu_chr_socket_connected,
|
||||
chr, NULL);
|
||||
chr, NULL, NULL);
|
||||
} else {
|
||||
if (s->is_listen) {
|
||||
char *name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue