(graphics): adaptor SLandmarks deadlock
Summary
If a ::fwData::Landmarks is already present when starting ::visuOgreAdaptor::SLandmarks, we get two deadlocks because the data is locked in updating()
, insertPoint()
and hideLandmark()
which are calling each other.
Steps to reproduce
Start or update the adaptor with a data landmarks present.
Possible fixes
insertPoint()
and hideLandmark()
can both be called by functions which locked the data or by functions which did not. To fix this, add an optionnal parameter containing the data or nullptr depending on the calling function.