Re: [libvirt-glib] API to save and suspend

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

 



On Tue, Jan 3, 2012 at 6:07 PM, Marc-André Lureau
<marcandre.lureau@xxxxxxxxx> wrote:
>
>
> On Tue, Jan 3, 2012 at 4:40 PM, Zeeshan Ali (Khattak) <zeeshanak@xxxxxxxxx>
> wrote:
>>
>> > Tbh, I think it's better having the small wrapper if we keep gslice.
>>
>>  Why? I don't see any possible leaks here.
>
>
> I am thinking of calling cancel before the thread func runs. I suppose it is
> cancellable this way too (or by other means), but I haven't checked gio
> code.

  The callback is supposed to be called anyway. In case of
cancellation, you get G_IO_ERROR_CANCELLED. i-e no leaks possible.
Anyway, I'll provide a wrapper func and use destroy notify, not a lot
of work after all. :)

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124

--
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]