Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于EventLoop.QueueInLoop的一个疑问 #98

Closed
liyonglion opened this issue Sep 7, 2021 · 2 comments
Closed

关于EventLoop.QueueInLoop的一个疑问 #98

liyonglion opened this issue Sep 7, 2021 · 2 comments

Comments

@liyonglion
Copy link

EventLoop.QueueInLoop的作用是什么?为什么新的connection需要加入到taskQueueW中后调用poll.Wake(),然后再doPendingFunc中回调将新的connection加入到epoll中。为什么不直接将connection直接加入epoll中,原因是什么?谢谢

@Allenxuxu
Copy link
Owner

可以看下这个讨论:https://www.zhihu.com/question/49741301

@liyonglion
Copy link
Author

感谢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants