Commit fd40ef98 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline
Browse files

Fix issue degrading performance of Model processing threads

parent 8a15207f
......@@ -1578,11 +1578,17 @@ void GlobalCPUAffinityMgr::setModelAffinity(
{
DEB_MEMBER_FUNCT();
DEB_PARAM() << DEB_VAR1(model_affinity_list);
if (model_affinity_list == m_curr.model_threads)
return;
m_cam->m_model->setThreadCPUAffinity(model_affinity_list);
CPUAffinity buffer_affinity = CPUAffinityList_all(model_affinity_list);
DEB_ALWAYS() << DEB_VAR1(buffer_affinity);
m_cam->m_buffer_ctrl_obj->setCPUAffinityMask(buffer_affinity);
m_curr.model_threads = model_affinity_list;
}
void GlobalCPUAffinityMgr::updateRecvRestart()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment