diff options
| author | Peter Xu | 2018-01-04 15:18:34 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2018-01-12 13:22:02 +0100 |
| commit | 938eb9e9c83d34d90cac6ec5c5388e7998840e4e (patch) | |
| tree | 4b7ebb60d9a17c1b7e46328441b264ee51e100ab /include/chardev | |
| parent | chardev: use backend chr context when watch for fe (diff) | |
| download | qemu-938eb9e9c83d34d90cac6ec5c5388e7998840e4e.tar.gz qemu-938eb9e9c83d34d90cac6ec5c5388e7998840e4e.tar.xz qemu-938eb9e9c83d34d90cac6ec5c5388e7998840e4e.zip | |
chardev: let g_idle_add() be with chardev gcontext
The idle task will be attached to main gcontext even if the chardev
backend is running in another gcontext. Fix the only caller by
extending the g_idle_add() logic into the more powerful
g_source_attach(). It's basically g_idle_add_full() implementation, but
with the chardev's gcontext passed in.
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180104141835.17987-3-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/chardev')
0 files changed, 0 insertions, 0 deletions
