Simplify locking for HDF5
Created by: tammojan
There was a case where the HDF5 mutex was not set when calling ApplyCal from nested threads. Rather than trying to pass the mutex around, I've introduced a static mutex, which also cleans up a bit. This mutex is used only for reading HDF5, so is not in any critical part of execution.
Solves #167 (closed)
Merge request reports
Activity
434 434 435 435 // Call ApplyCal step 436 436 if (itsDoApplyCal) { 437 if(itsMeasuresMutex == nullptr) 438 itsApplyCalStep.process(itsTempBuffer); 439 else 440 itsApplyCalStep.process(itsTempBuffer, itsMeasuresMutex); 434 434 435 435 // Call ApplyCal step 436 436 if (itsDoApplyCal) { 437 if(itsMeasuresMutex == nullptr) 438 itsApplyCalStep.process(itsTempBuffer); 439 else 440 itsApplyCalStep.process(itsTempBuffer, itsMeasuresMutex);
Please register or sign in to reply