mirror of
https://gitlab.com/qemu-project/qemu.git
synced 2026-08-26 22:23:12 -04:00
The original design of QIOTask was intended to simplify lifecycle
management by automatically freeing it when the task was marked as
complete. This overlooked the fact that when a QIOTask is used in
combination with a GSource, there may be times when the source
callback is never invoked. This is typically when a GSource is
released before any I/O event arrives. In such cases it is not
desirable to mark a QIOTask as complete, but it still needs to be
freed. To satisfy this, the task must be released manually.
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| channel-buffer.h | ||
| channel-command.h | ||
| channel-file.h | ||
| channel-null.h | ||
| channel-socket.h | ||
| channel-tls.h | ||
| channel-util.h | ||
| channel-watch.h | ||
| channel-websock.h | ||
| channel.h | ||
| dns-resolver.h | ||
| net-listener.h | ||
| task.h | ||