关闭线程

SetSoftElemMonitorRunning = false;
QObject::disconnect(this, SIGNAL(ShowData(unsigned char*, int, QString)), this, SLOT(ShowDataSlot(unsigned char*, int, QString)));
WaitForSingleObject(m_hTreadMonitor, INFINITE);
TerminateThread(m_hTreadMonitor, 0);
if (m_hTreadMonitor!=NULL)
{
CloseHandle(m_hTreadMonitor);
}
m_hTreadMonitor = NULL;

猜你喜欢

转载自www.cnblogs.com/ShiShouTHS/p/11365391.html