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

这个相对于libevent有什么改进的地方 #6

Open
GoogleCodeExporter opened this issue Jul 2, 2015 · 2 comments
Open

这个相对于libevent有什么改进的地方 #6

GoogleCodeExporter opened this issue Jul 2, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

对于libevent我没有阅读过代码只是看过sample,libevent应该是托�
��了IO方面工作。阅读hpserver发现这个框架也只是托管IO工作(
同时也将定时器和信号封装称为event给handler来处理,brilliant 
idea)。所以我在想这个库相对于libevent有什么比较大的改进��
�方?

ps:hpserver打算调度模型吗?就是提供进程或者是线程模型?这
样使用起来可能会更加方便。

ps2:一个具体代码细节问题,我发现对于信号处理并是实时的�
��必须至少等待到下一个读写或者是定时器触发之后才会处理
。

Original issue reported on code.google.com by dirtysal...@gmail.com on 21 Aug 2011 at 2:41

@GoogleCodeExporter
Copy link
Author

可以认为是libevent的C++版本,它还提供了对handler的管理工作��
�一定程度上可以自定义调度模型。

PS1:事实上,复杂的多线程将使程序流程、行为完全不可控��
�,程序难以跟踪、调试。所以我对使用多线程的态度非常保�
��,使得线程关系最大的简化,使线程之间同步接口最小化。
类似于memcached对libevent的那种多线程包装是我比较喜欢的类型
。

P2S:这一个不是实时处理的,没有打断当前的I/O或者定时器��
�件的流程。

Original comment by sparklin...@gmail.com on 21 Oct 2011 at 2:53

@GoogleCodeExporter
Copy link
Author

另外加入了对acceptor-connector模式的支持

Original comment by sparklin...@gmail.com on 21 Oct 2011 at 2:57

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

No branches or pull requests

1 participant