We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The text was updated successfully, but these errors were encountered:
感谢提问,说说我的个人看法吧。 1.你这里多线程的定义是什么,目前该框架支持多线程是这样的:一个主线程运行reactor,不断epoll_wait监听listendfd的事件,有新连接分配给一个IO线程。IO线程复制监听这个新连接的读写事件,然后进行read、dncode、encode、write等读写事件。 2.另外按照目前的设计来说协程是跟线程绑定的。从Resume函数的参数上也可以看出来,入参里面是无需指定主协程的,因为主协程取得就是当前线程的主协程,这个值已经放在线程局部变量了。当然这个设计不是一定的,说不定也会取消这种绑定关系做到自由切换,但是目前来说我没看到这种必要性。 3.关于"hook里函数不建议与libc同名"这点我还在考虑中,目前来看确实也没必要与libc的函数同名。
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: