Commit af12c345 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by Generic Bliss account for Control Software
Browse files

CtControl::prepareAcq: notify ImageStatusCallback threads as last step:

* Avoid Tango dead-lock timeout due to lengthy memory allocations
parent ee039373
Pipeline #29300 passed with stages
in 75 minutes and 9 seconds
......@@ -471,13 +471,17 @@ void CtControl::prepareAcq()
if(aStatus.AcquisitionStatus == AcqConfig)
THROW_CTL_ERROR(Error) << "Configuration not finished";
m_ready= false; // prevent calling startAcq before full preparation
AutoMutex aLock(m_cond.mutex());
m_ready= false; // prevent calling startAcq before full preparation
//Abort previous acquisition tasks
// reset acq status without notifying callbacks
//Clear all re-ordered image counters
......@@ -572,6 +576,9 @@ void CtControl::prepareAcq()
THROW_CTL_ERROR(Error) << "Can't have any software operation if Hardware saving is active";
// reset status and notify callbacks
AutoMutex aLock(m_cond.mutex());
m_ready= true;
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