]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: process: Extract code for submitting event handling to separate thread
authorPeter Krempa <pkrempa@redhat.com>
Tue, 20 Jul 2021 10:25:46 +0000 (12:25 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 23 Jul 2021 08:01:48 +0000 (10:01 +0200)
commite286a6294160008776cbce0f40bb505d653098f5
tree4bc3f72c107a52e1a2dab98b33b2fa266aa4fb4b
parent59ba742cbc09a0661eb2d33b9e6da06fcc1ae6a0
qemu: process: Extract code for submitting event handling to separate thread

The submission of the event to the helper thread has a verbose cleanup
path which was duplicated in all the event handlers. Simplify it by
extracting the code into a helper named 'qemuProcessEventSubmit' and
reuse it where appropriate.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_process.c