关闭线程
时间:2019-08-16 18:50:07
收藏:0
阅读:71
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;
原文:https://www.cnblogs.com/ShiShouTHS/p/11365391.html
评论(0)