简体   繁体   中英

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

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.

您可以看到http://www.xmailserver.org/eventfd-aio-test.c获取aio和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与Kqueue一起支持AIO,可以通过Kqueue接口监视AIO完成。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM