資源簡(jiǎn)介
c++11的多線程庫(kù)使用方法例子,介紹了c++11和thread庫(kù)的使用方法
代碼片段和文件信息
#include?
#include?
using?namespace?std;
class?_tagNode
{
public:
int?a;
int?b;
};
void?func(_tagNode&?node)
{
node.a?=?10;
node.b?=?20;
}
void?f()
{
_tagNode?node;
thread?t(func?ref(node));
t.j
評(píng)論
共有 條評(píng)論