![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux多线程服务器编程
文章平均质量分 76
Zaki_huang
新主页http://www.jianshu.com/u/18dc720a508b
展开
-
linux多线程服务器编程 muduo库学习笔记
知识点: linux多线程服务器编程 8.0章 我认为Eventloop的作用主要是保证每个线程之多有一个EventLoop对象。书上的代码不完整,自己补充了下 eventloop.h#ifndef EVENTLOOP_H #define EVENTLOOP_H #include #include #include #include #include #includ原创 2016-06-15 16:58:45 · 810 阅读 · 0 评论 -
linux多线程服务器编程 muduo库学习笔记二
知识点:Linux多线程服务器端编程 8.2 接着上一篇,这里用定时器创建了一个事件,在TimerQueue构造函数中可以看到,每当计时到时时,Poller响应,调用定时器channel的回调函数,这里被绑定了handleRead()函数。handleRead()函数处理已经超时的所有Timer, 处理Timer的回调函数, 然后重置到时的Timer。这里调用addTimer插入一个Timer事原创 2016-07-14 15:55:36 · 644 阅读 · 0 评论