2018年6月2日

C++11 多线程编程 使用lambda创建std::thread (生产/消费者模式)

摘要: 要写个tcp server / client的博客,想着先写个c++11多线程程序。方便后面写博客使用。 目前c++11中写多线程已经很方便了,不用再像之前的pthread_create,c++11中已经有了std::thread库可以方便使用。 直接看代码(100个任务, 多个线程处理): 编译、 阅读全文

posted @ 2018-06-02 17:00 旭东的博客 阅读(5347) 评论(0) 推荐(0) 编辑

导航