本文整理汇总了C++中CPARAM_THREADPROC::bForceTerminateThread方法的典型用法代码示例。如果您正苦于以下问题:C++ CPARAM_THREADPROC::bForceTerminateThread方法的具体用法?C++ CPARAM_THREADPROC::bForceTerminateThread怎么用?C++ CPARAM_THREADPROC::bForceTerminateThread使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPARAM_THREADPROC
的用法示例。
在下文中一共展示了CPARAM_THREADPROC::bForceTerminateThread方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Worker_Disconnect
HRESULT Worker_Disconnect(ISimENG* /*pISimENGLoc*/, Base_WrapperErrorLogger* pIlogLoc)
{
if (GetCurrState() == STATE_PRIMORDIAL)
{
sg_acErrStr = _("CAN_STUB_DeselectHwInterface called at STATE_PRIMORDIAL");
return S_FALSE;
}
else if (GetCurrState() == STATE_RESET)
{
pIlogLoc->vLogAMessage(__FILE__, __LINE__,
(_("CAN_STUB_DeselectHwInterface called at improper state")));
return S_FALSE;
}
// Close the message reading thread
if(sg_unClientCnt <= 0 )
{
//Some Error Happened But Thread close is required.
//sg_unClientCnt = 0 means there is no data flow and thread
//force termination is safe.
sg_sParmRThreadStub.bForceTerminateThread();
}
else
{
sg_sParmRThreadStub.bTerminateThread();
}
return S_OK;
}