关于Epoll中的events_扩容问题 #609
Unanswered
userhr2333
asked this question in
Q&A
Replies: 1 comment
-
具体有什么问题? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
先贴上该部分的源码
epollpoller.cc里面的
当发现numEvents == events_.size()才进行扩容,默认的events_长度是16,假如第一次eppolfd上就出现了超过16个的事件,那么这个时候events_空间不够了,这样的话是直接忽略后面的事件吗?然后等发现numEvents == events_.size(),再进行扩容?求大佬解惑😂😂😂
Beta Was this translation helpful? Give feedback.
All reactions