9

How can you combine AIO and epoll together in a single event loop?

Google finds lots of talk from 2002 and 2003 about unifying them, but its unclear if anything happened, or if it's possible.

Has anyone rolled-their-own with an epoll loop using eventfd for the aio signal?

2
  • Realise this is very old question, but you could use 'signalfd' for the signal from aio May 25, 2013 at 0:33
  • Are you referring to POSIX AIO or Linux AIO? The latter allows to register an eventfd for completion notifications. And that eventfd you could add to your epoll fd set. May 15, 2021 at 9:47

4 Answers 4

5

try libevent:

http://www.monkey.org/~provos/libevent/

there are patches to support both.

1
3

you can see http://www.xmailserver.org/eventfd-aio-test.c for a sample of aio and eventfd

1
1

Tried eventfd with epoll?

"A key point about an eventfd file descriptor is that it can be monitored just like any other file descriptor using select(2), poll(2), or epoll(7)."

0

FreeBSD supports AIO together with Kqueue, the AIO completion can be monitored by the Kqueue interface.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.