Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckpointSender 线程回收问题 #195

Open
huangyu6572 opened this issue Jul 1, 2022 · 1 comment
Open

CheckpointSender 线程回收问题 #195

huangyu6572 opened this issue Jul 1, 2022 · 1 comment

Comments

@huangyu6572
Copy link

huangyu6572 commented Jul 1, 2022

  1. 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
Copy link
Author

#83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant