CheckpointSender 线程回收问题
huangyu6572 opened this issue · 1 comments
huangyu6572 commented
- CheckpointSender 启动后的线程回收 ,
checkpoint_sender.cpp
stop函数内部的条件
if (m_bIsStarted && ! m_bIsEnded)
{
m_bIsEnd = true;
join();
}
需要改为
if (m_bIsStarted )
{
m_bIsEnd = true;
join();
}
m_bIsEnded初始状态为false,结束为true,都有可能导致不能正常退出线程
huangyu6572 commented