![](https://img-blog.csdnimg.cn/20190918135101160.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
linux下c++11并发编程问题记录
以前对于学的东西整理只是给自己看,有点散乱,想开始花时间慢慢梳理自己的知识体系
_李白_
内外兼修,方是正途;外是架构,内是数学。
展开
-
c++11并发编程问题记录(2) warning C4930: 未调用原型函数(是否是有意用变量定义的?)(暂未解决)
在写上一篇转移线程所有权的博文时写的代码出现了一个以前没注意过的小问题,分享一下 先看代码 #include <iostream> #include <thread> class scoped_thread { public: explicit scoped_thread(std::thread _t):m_thread(std::move(_t)) { s...原创 2020-04-14 09:39:33 · 602 阅读 · 1 评论 -
c++11并发编程问题记录(1):undefined reference to `pthread_create' collect2: error: ld returned 1 exit status
**写了一段简单的代码,如下: #include <iostream> #include <thread> using namespace std; void Hello() { cout<<"Hello World"<<endl; } int main() { thread my_thread(Hello); my_thread.joi...原创 2020-03-19 14:36:17 · 619 阅读 · 0 评论