会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
itdef
2015年6月7日
c++11多线程学习笔记之二 mutex使用
摘要: // 1111111.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include int gcounter = 0;std::mutex gmtx; std::mutex gmtxOutput;voi...
阅读全文
posted @ 2015-06-07 21:29 itdef
阅读(319)
评论(0)
推荐(0)
c++11多线程学习笔记之一 thread基础使用
摘要: 没啥好讲的 c++11 thread类的基本使用#include "stdafx.h"#include #include void Func(int n){ for (int i = 0; i < 3; ++i) std::cout << "func " << i << std::endl;}vo...
阅读全文
posted @ 2015-06-07 21:11 itdef
阅读(391)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告