[libvirt] [RFC] Substitute poll by epoll in virEventPollRunOnce

Roman Bogorodskiy bogorodskiy at gmail.com
Mon Feb 13 14:09:53 UTC 2017


  Daniel P. Berrange wrote:

> > 2) Are ifdef an acceptable solution to epoll avaliability issues?
> 
> There are quite a large number of ifdefs in your patch below.
> 
> I think it could be worth having a separate vireventepoll.c
> for the epoll impl. Then choose to compile vireventpoll.c vs
> vireventepoll.c at configure time.  We could have vireventcommon.c
> if there is some portion of code that can be shared.

If we're going this route, would it make sense to use an existing
abstraction layer like libevent?

(Asking out of curiosity, not from experience)

Roman Bogorodskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170213/aaa07e4e/attachment-0001.sig>


More information about the libvir-list mailing list