[libvirt-users] events dispatching in synchronous mode

Daniel P. Berrange berrange at redhat.com
Wed Mar 8 11:35:22 UTC 2017


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/ :|




More information about the libvirt-users mailing list