I know that specifying the event EPOLLET
switches epoll from being level-triggered to edge-triggered. Does it mean by default call to epoll_wait()
is Level-Triggered?
我知道指定事件EPOLLETswitches epoll从水平触发到边缘触发。是否默认调用epoll_wait()是否为Level-Triggered?
1 个解决方案
#1
1
See http://man7.org/linux/man-pages/man7/epoll.7.html
By contrast, when used as a level-triggered interface (the default,
when EPOLLET is not specified), epoll is simply a faster poll(2), and
can be used wherever the latter is used since it shares the same
semantics.
So, when EPOLLET is not specified, level-triggered is the default option.
因此,当未指定EPOLLET时,水平触发是默认选项。
#1
1
See http://man7.org/linux/man-pages/man7/epoll.7.html
By contrast, when used as a level-triggered interface (the default,
when EPOLLET is not specified), epoll is simply a faster poll(2), and
can be used wherever the latter is used since it shares the same
semantics.
So, when EPOLLET is not specified, level-triggered is the default option.
因此,当未指定EPOLLET时,水平触发是默认选项。