WebServer icon indicating copy to clipboard operation
WebServer copied to clipboard

C++11

Open sunlulu427 opened this issue 5 years ago • 1 comments

大佬你好,你的服务器我看了,写的的确很不错,不过有一点我不太懂,因为C++11中已经包含了thread类和mutex类,写线程池和锁的使用都很方便,为什么没有使用呢?

sunlulu427 avatar May 13 '19 10:05 sunlulu427

posix接口的函数是基础,我这是个学习用的项目,更倾向于尽可能自己实现。不过你也可以关注下现在开源的网络库,大都自己封装了posix接口,公司里的也一样,好处是不依赖C++11。

linyacool avatar May 13 '19 15:05 linyacool