Re: [libvirt] Using virtEvents

2012-01-12 Thread D. Herrendoerfer
Daniel, Eric On Jan 5, 2012, at 6:35 PM, Daniel P. Berrange wrote: Thank you very much for the introduction, I've spent the week digging through the code and have a way better understanding of the difference in the handling of events now. Any event loop callback must be sure to complete in

Re: [libvirt] Using virtEvents

2012-01-05 Thread Daniel P. Berrange
On Thu, Dec 29, 2011 at 12:03:06PM +0100, D. Herrendoerfer wrote: Sorry to come back on this. How are the different threads of the libvirt daemon separated ? I understand that there are 2 separate threads running that are forked. There are also 4 more that appear to be threads. Is that

Re: [libvirt] Using virtEvents

2012-01-05 Thread Eric Blake
On 12/29/2011 04:03 AM, D. Herrendoerfer wrote: Sorry to come back on this. [Caveat - I didn't write the threading model used in libvirt, so my answers are my interpretation of the code as I have come to understand it, but might not be 100% accurate] How are the different threads of the

Re: [libvirt] Using virtEvents

2011-12-29 Thread D. Herrendoerfer
Sorry to come back on this. How are the different threads of the libvirt daemon separated ? I understand that there are 2 separate threads running that are forked. There are also 4 more that appear to be threads. Is that correct ? Now, the virEvents main polling loop is running in a forked