修复重启图像处理线程的BUG(终止早期线程卡住)

This commit is contained in:
gb 2024-03-15 16:50:36 +08:00
parent 1731171766
commit 427f0f4d07
1 changed files with 4 additions and 0 deletions

View File

@ -183,7 +183,11 @@ void imgproc_mgr::empty_dump_image(DUMP_PROTO)
void imgproc_mgr::start_workers(int cnt)
{
run_ = false;
for(int i = 0; i < working_cnt_; ++i)
raw_.trigger();
workers_.stop(nullptr);
run_ = true;
#ifdef USE_THREAD_PAGED_DATA
for(auto& v: params_)