How can you combine AIO and epoll together in a single event loop?
如何在单个事件循环中将AIO和epoll结合在一起?
Google finds lots of talk from 2002 and 2003 about unifying them, but its unclear if anything happened, or if it's possible.
谷歌在2002年和2003年发现了许多关于统一它们的讨论,但不清楚是否有任何事情发生,或者是否有可能。
Has anyone rolled-their-own with an epoll loop using eventfd for the aio signal?
是否有人使用eventfd为aio信号滚动自己的epoll循环?
4 个解决方案
#1
5
try libevent:
尝试libevent:
http://www.monkey.org/~provos/libevent/
http://www.monkey.org/~provos/libevent/
there are patches to support both.
有补丁支持两者。
#2
3
you can see http://www.xmailserver.org/eventfd-aio-test.c for a sample of aio and eventfd
您可以看到http://www.xmailserver.org/eventfd-aio-test.c获取aio和eventfd的示例
#3
0
Tried eventfd with epoll?
用epoll尝试过eventfd?
"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)."
“关于eventfd文件描述符的一个关键点是它可以像使用select(2),poll(2)或epoll(7)的任何其他文件描述符一样被监视。”
#4
0
FreeBSD supports AIO together with Kqueue, the AIO completion can be monitored by the Kqueue interface.
FreeBSD与Kqueue一起支持AIO,可以通过Kqueue接口监视AIO完成。
#1
5
try libevent:
尝试libevent:
http://www.monkey.org/~provos/libevent/
http://www.monkey.org/~provos/libevent/
there are patches to support both.
有补丁支持两者。
#2
3
you can see http://www.xmailserver.org/eventfd-aio-test.c for a sample of aio and eventfd
您可以看到http://www.xmailserver.org/eventfd-aio-test.c获取aio和eventfd的示例
#3
0
Tried eventfd with epoll?
用epoll尝试过eventfd?
"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)."
“关于eventfd文件描述符的一个关键点是它可以像使用select(2),poll(2)或epoll(7)的任何其他文件描述符一样被监视。”
#4
0
FreeBSD supports AIO together with Kqueue, the AIO completion can be monitored by the Kqueue interface.
FreeBSD与Kqueue一起支持AIO,可以通过Kqueue接口监视AIO完成。