HANDLE hThread;
hThread = (HANDLE)_beginthreadex( NULL, 0, &SecondThreadFunc, NULL, 0, &threadID );
WaitForSingleObject( hThread, INFINITE );
以上内容来自MSDN
本文介绍使用C++通过_beginthreadex函数创建线程的方法,并演示如何利用WaitForSingleObject函数来等待线程结束。具体包括创建线程的参数说明及线程等待的用法。
HANDLE hThread;
hThread = (HANDLE)_beginthreadex( NULL, 0, &SecondThreadFunc, NULL, 0, &threadID );
WaitForSingleObject( hThread, INFINITE );
以上内容来自MSDN
1284

被折叠的 条评论
为什么被折叠?