不要重复CreatEvent,即使重复CreatEvent,也会得到一个新的Handle,注意避免句柄泄漏。 #include "stdafx.h". HANDLE ghEvents[2];. DWORD WINAPI ThreadProc(LPVOID) ...
確定! 回上一頁