摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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... 阅读全文