摘要:
互斥是有线程所有权的 hMutex = CreateMutex(NULL, FALSE, NULL); FALSE:不为任何线程所有,但他现在也是激发的 TRUE:当前的创建线程所有,默认不激发 阅读全文
posted @ 2016-12-12 14:46
龙城狂拽酷炫霸
阅读(192)
评论(0)
推荐(0)
摘要:
HANDLE hSemaphore; cout<<1<<endl; hSemaphore = CreateSemaphore( NULL, 0, 10000, NULL); //初始 0个资源 ReleaseSemaphore(hSemaphore, 1, NULL); //+1 ReleaseSe 阅读全文
posted @ 2016-12-12 12:25
龙城狂拽酷炫霸
阅读(740)
评论(0)
推荐(0)