![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++-多线程
文章平均质量分 94
taku2006
这个作者很懒,什么都没留下…
展开
-
C++ 11 多线程 (一)
C++ 11 多线程 (一)thread 类方法列表 函数名 形式 备注 构造函数 -默认构造函数thread() -初始化构造函数thread(Fn&& fn, Args&&… args); -移动构造函数thread (thread&& x) noexcept; 无法使用拷贝构造函数 析构器 ~thread() = -move: thread原创 2017-11-30 22:02:08 · 220 阅读 · 0 评论 -
C++ 11 多线程 (condition_variable)(二)
[http://blog.csdn.net/taku2006/article/details/78678573]前一篇主要介绍了thread类,这篇主要介绍condition_variable1. condtion_variable类 函数名 函数形式 备注 构造器 condition_variable(); 不支持拷贝,移动构造器 析构器 ~condition_var原创 2017-12-03 00:38:30 · 794 阅读 · 0 评论 -
C++多线程(mutex类)(三)
mutex 类 详细方法介绍参见C++ RefMutex Types Mutex types是lockable type类型,用于保护对特定区域代码的访问。支持操作:lock 和unlock。lock操作用于防止其他thread的访问,unlock操作用于解除lock。C++11中有4种Mutex Type mutex构造器 constexpr mutex() noexcept; 不支持拷原创 2017-12-03 00:58:58 · 705 阅读 · 0 评论