![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
并行
Echo1006
这个作者很懒,什么都没留下…
展开
-
C++ : std::unique_lock
std::unique_lockstd::unique_lock<std::mutex> lock1(mutex1, std::defer_lock);//defer_lock:mutex1没有被锁住//代码块lock1.lock();std::cout << str << " : " << id << std::endl;l...原创 2018-06-12 16:28:58 · 193 阅读 · 0 评论 -
C++ : 多线程之条件变量
#include<iostream>#include<thread>#include<string>#include<mutex>#include<fstream>#include<deque>#include<chrono>#include<condition_variable&原创 2018-06-13 09:44:36 · 214 阅读 · 0 评论