if(m_pThread)
{
DWORD dwCode = 0;
BOOL bRst = GetExitCodeThread(m_pThread-> m_hThread, &dwCode);
if(!bRst || dwCode != STILL_ACTIVE)
{
return;
}
m_bAbort = true;
SetThreadPriority(m_pThread->m_hThread, THREAD_PRIORITY_HIGHEST);
Sleep(1);
if(WAIT_OBJECT_0 != WaitForSingleObject(m_pThread->m_hThread,500))
{
TerminateThread(m_pThread->m_hThread, 0);
}
m_pThread = NULL;
}
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。