开发者

How do you use AIO and epoll together in a single event loop?

开发者 https://www.devze.com 2022-12-13 02:44 出处:网络
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 p

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?


try libevent:

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

there are patches to support both.


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


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)."


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号