码迷,mamicode.com
首页 > 编程语言 > 详细

关闭线程

时间:2019-08-16 18:39:42      阅读:103      评论:0      收藏:0      [点我收藏+]

标签:eth   show   monitor   monit   unsigned   leo   run   object   hand   

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;

关闭线程

标签:eth   show   monitor   monit   unsigned   leo   run   object   hand   

原文地址:https://www.cnblogs.com/ShiShouTHS/p/11365391.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!