摘要: 1 #include 2 #include 3 #include 4 #include 5 6 int g_nTlsNum; 7 UINT __stdcall ThreadProc(LPVOID); 8 void InitialStartTime(); 9 DWORD GetUsedTime(); 10 11 UINT __stdcall ThreadProc(LPVOID... 阅读全文
posted @ 2017-02-01 22:59 泛未分晨 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 6 HANDLE g_hEvent; 7 UINT __stdcall ThreadProc(LPVOID); 8 int main(int argc,char* argv[]) 9 { 10 unsigned uThreadId; 11 char szEventNam... 阅读全文
posted @ 2017-02-01 22:58 泛未分晨 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 6 int g_nCount1 = 0,g_nCount2 = 0; 7 bool g_bThread = true; 8 UINT __stdcall ThreadProc(LPVOID); 9 int main(int argc,char* argv[]) 10 { 11 ... 阅读全文
posted @ 2017-02-01 22:57 泛未分晨 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 6 int g_nCount1 = 0,g_nCount2 = 0; 7 bool g_bThreadProc; 8 CRITICAL_SECTION g_cs; 9 10 UINT __stdcall ThreadProc(LPVOID); 11 int main(int arg... 阅读全文
posted @ 2017-02-01 22:56 泛未分晨 阅读(154) 评论(0) 推荐(0) 编辑