悉野小楼

导航

2013年7月30日

MFC学习 多线程

摘要: #include #include #include HANDLE hMutex; //互斥对象void ProcessTask(void * args){ int a = 0; WaitForSingleObject(hMutex, INFINITE); while ( a < 100) printf("_beginthread %d\n", a++); ReleaseMutex(hMutex); //结束后会自动调用_endtrhead}unsigned int _stdcall ProcessTask2(void * args){ int... 阅读全文

posted @ 2013-07-30 15:47 悉野 阅读(240) 评论(0) 推荐(0) 编辑