摘要:
C++ 10 条细节 链接:https://juejin.im/post/5e440646e51d4526d43f2764 正文 1 让自己习惯C++ 细节 01:尽量以const,enum,inline 替换 #define #define 定义的常量有什么不妥? 首先我们要清楚程序的编译重要的三 阅读全文
posted @ 2020-07-12 22:06
lsgxeva
阅读(376)
评论(0)
推荐(0)
摘要:
C++ 并发编程之互斥锁和条件变量的性能比较 来源 https://juejin.im/post/5d6b2e655188257a2615eb72 介绍 本文以最简单生产者消费者模型,通过运行程序,观察该进程的cpu使用率,来对比使用互斥锁 和 互斥锁+条件变量的性能比较。 本例子的生产者消费者模型 阅读全文
posted @ 2020-07-12 21:58
lsgxeva
阅读(1366)
评论(0)
推荐(0)
摘要:
C++ 11 线程、锁和条件变量 https://fzheng.me/2016/08/11/cpp11-multi-thread/ 原文: C++11 threads, locks and condition variables 线程 std::thread 类, 位于 <thread> 头文件,实 阅读全文
posted @ 2020-07-12 21:56
lsgxeva
阅读(465)
评论(0)
推荐(0)

浙公网安备 33010602011771号