, . , , ( , ..):
{
std::lock_guard<std::mutex> lock(mu_flow);
kill_ = true;
}
cv_command_exec_.notify_all();
thread1.join();
, timer::section() std::thread thread1.
. , , kill_ = true , .notify_all() ( , ).
, std:: unique_lock :
std::unique_lock<std::mutex> lock(mu_flow);
kill_ = true;
lock.unlock();
cv_command_exec_.notify_all();
thread1.join();
... .