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

前端 未结 4 522
北恋
北恋 2020-12-30 10:27

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 happ

相关标签:
4条回答
  • 2020-12-30 11:05

    try libevent:

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

    there are patches to support both.

    0 讨论(0)
  • 2020-12-30 11:17

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

    0 讨论(0)
  • 2020-12-30 11:20

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

    0 讨论(0)
  • 2020-12-30 11:20

    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 讨论(0)
提交回复
热议问题