summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-06-18 08:43:58 +0200
committerLuiz Capitulino <lcapitulino@redhat.com>2014-06-23 11:12:28 -0400
commit9005b2a7589540a3733b3abdcfbccfe7746cd1a1 (patch)
tree9cccfcf20b99cc301f8da9777bcbd97e880dd315 /monitor.c
parent1bb7fe725c5f24a441c93fcffddcf4726f11cab5 (diff)
downloadqemu-9005b2a7589540a3733b3abdcfbccfe7746cd1a1.tar.gz
qemu-char: make writes thread-safe
This will let threads other than the I/O thread raise QMP events. GIOChannel is thread-safe, and send and receive state is usually well-separated. The only driver that requires some care is the pty driver, where some of the state is shared by the read and write sides. That state is protected with the chr_write_lock too. Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'monitor.c')
0 files changed, 0 insertions, 0 deletions