Re: [PATCH 5/5] Clean timer in virObjectEventStateFlush

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11.10.2016 20:53, Martin Kletzander wrote:
> If the last event callback is unregistered while the event loop is
> dispatching, it is only marked as deleted, but not removed.  The number
> of callbacks is more than zero in that case, so the timer is not
> removed.  Because it can be removed in this function now (but also
> accessed afterwards so that we set 'isDispatching = false' and have it
> locked), we need to temporarily increase the reference counter of the
> state for the duration of this function.
> 
> Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
> ---
>  src/conf/object_event.c | 8 ++++++++
>  1 file changed, 8 insertions(+)

ACK

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]