Skip to content
Snippets Groups Projects

Thread-safety patches

Merged Vakhtang Tsulaia requested to merge (removed):master-mutextes into master
6 files
+ 51
19
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -7,6 +7,7 @@
@@ -7,6 +7,7 @@
#include "GeoModelKernel/GeoTransform.h"
#include "GeoModelKernel/GeoTransform.h"
#include <vector>
#include <vector>
 
#include <mutex>
class GeoVAlignmentStore;
class GeoVAlignmentStore;
@@ -45,6 +46,10 @@ class GeoAlignableTransform final : public GeoTransform
@@ -45,6 +46,10 @@ class GeoAlignableTransform final : public GeoTransform
// the memory is unallocated.
// the memory is unallocated.
GeoTrf::Transform3D* m_delta;
GeoTrf::Transform3D* m_delta;
 
// We need to protext m_delta with a mutex in order to avoid
 
// memory corruption in multithreaded applications
 
mutable std::mutex m_deltaMutex;
 
// A list of parents who use this alignable target. They
// A list of parents who use this alignable target. They
// must all be notified when the alignment changes!
// must all be notified when the alignment changes!
std::vector<GeoGraphNode*> m_parentList;
std::vector<GeoGraphNode*> m_parentList;
Loading