[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libvir-list
Subject:    close callback and multiple threads
From:       John Levon <levon () movementarian ! org>
Date:       2023-12-15 11:08:18
Message-ID: ZXwzoiY5simPzWz+ () movementarian ! org
[Download RAW message or body]

On Fri, Dec 15, 2023 at 10:58:29AM +0000, Daniel P. Berrangé wrote:

> If you use the virConnectRegisterCloseCallback() method, you should get
> notified of the connection drop at precisely the right time, every time,
> regardless of whether you happen to be making an API call at the time.

That only gets called once, not for every thread sharing the connection,
so there is no way to clean up all the other threads.

regards
john
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic