[libvirt] [PATCH 2/3] libvirtaio: add allow for moving callbacks to other event loop
Wojtek Porczyk
woju at invisiblethingslab.com
Fri Sep 1 11:51:17 UTC 2017
On Fri, Sep 01, 2017 at 10:08:18AM +0100, Daniel P. Berrange wrote:
> IIUC, you are trying to make it possible to register multiple event
> loop impls. This is *not* supported usage of libvirt. You must
> call 'virEventRegisterImpl' before opening any connection, and once
> called you are forbidden to call it again.
Yes, that's correct. Can't I do it, even after I close all the connections?
Why then libvirt_virEventRegisterImpl (libvirt-python/libvirt-override.c:5434)
seems to accomodate for running it second time?
The reason for this is we have separate event loop for each test case, but the
whole suite runs in a single process. The Impl has to use the new loop for
each test. Would it be better to just substitute the loop in a long-lived Impl
instance?
--
pozdrawiam / best regards _.-._
Wojtek Porczyk .-^' '^-.
Invisible Things Lab |'-.-^-.-'|
| | | |
I do not fear computers, | '-.-' |
I fear lack of them. '-._ : ,-'
-- Isaac Asimov `^-^-_>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170901/c064efcb/attachment-0001.sig>
More information about the libvir-list
mailing list