修复重启图像处理线程的BUG(终止早期线程卡住)
This commit is contained in:
parent
1731171766
commit
427f0f4d07
|
@ -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_)
|
||||
|
|
Loading…
Reference in New Issue