多线程编程入门及基本概念, 线程安全与锁,原子操作及call_once
#include<iostream>
#include<string>
#include<thread>
#include<unistd.h>//for getpid
#include<pthread>//for pthread_self
using namespace std;//实战中不要用namespace std??why
using std::cout;
using std::endl;
using std::string;
using
原创
2020-06-24 17:22:56 ·
168 阅读 ·
0 评论