July7th

导航

C++多线程2

#include "stdafx.h" #include int g_count; const int ThreadNum = 10; DWORD __stdcall Func(LPVOID pm) { Sleep(10); g_count++; //InterlockedIncrement((LPLONG)&g_count); return 0; } in...

posted on 2017-01-01 18:22  July7th  阅读(106)  评论(0编辑  收藏  举报