CreateEvent与CreateMutex,关键代码段,线程锁死
1.创建事件对象#include #include using namespace std;DWORD WINAPI thread1fun(LPVOID);DWORD WINAPI thread2fun(LPVOID);int tickets=10;HANDLE hEvent;int main(){ HANDLE hthread1,hthread2; //
原创
2012-12-06 21:07:53 ·
1642 阅读 ·
0 评论