Matczak, KrzysztofX
2017-Mar-08 11:27 UTC
[libvirt-users] events dispatching in synchronous mode
Hi Is there any way to get events dispatching in synchronous mode ? I mean I'm running my own events polling loop which calls virEventRunDefaultImpl each turn . I'd expect to get my callback function called synchronously , but it's not . Seems that's async call. Maybe it's my general misunderstanding and I shouldn't use virEventRunDefaultImpl for that ? Thanks in advance for any guidance Krzysztof -------------------------------------------------------------- Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
Daniel P. Berrange
2017-Mar-08 11:35 UTC
Re: [libvirt-users] events dispatching in synchronous mode
On Wed, Mar 08, 2017 at 11:27:17AM +0000, Matczak, KrzysztofX wrote:> Hi > Is there any way to get events dispatching in synchronous mode ? > I mean I'm running my own events polling loop which calls > virEventRunDefaultImpl each turn . I'd expect to get my callback > function called synchronously , but it's not . Seems that's async > call. > Maybe it's my general misunderstanding and I shouldn't use > virEventRunDefaultImpl for that ?By design, all libvirt event dispatch is asynchronous wrt API calls which trigger the events. The only guarantee we can make is that events are dispatched in the order in which they occurr. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|
Matczak, KrzysztofX
2017-Mar-08 11:50 UTC
Re: [libvirt-users] events dispatching in synchronous mode
Ok, thanks for quick response . Krzysztof -------------------------------------------------------------- Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.