Fraxinus  17.12-rc3
An IGT application
cx::StaticMutexVtkLocker Class Reference

#include <cxErrorObserver.h>

Public Member Functions

 StaticMutexVtkLocker ()
 
 ~StaticMutexVtkLocker ()
 

Detailed Description

Locks a static mutex in the constructor and unlocks it in the desctructor, similar to a QMutexLocker.

Use this as a global access restriction for thread-unsafe VTK objects.

Testing has shown that the following methods need to be mutexed:

  • vtkMetaImageReader::Update()
  • vtkMetaImageWrite::Write() There are probably some global stuff inside vtkmetaio.

Note: Googling indicates that VTK in general is threadUNsafe.

Definition at line 28 of file cxErrorObserver.h.

Constructor & Destructor Documentation

cx::StaticMutexVtkLocker::StaticMutexVtkLocker ( )

Definition at line 6 of file cxErrorObserver.cpp.

cx::StaticMutexVtkLocker::~StaticMutexVtkLocker ( )

Definition at line 13 of file cxErrorObserver.cpp.


The documentation for this class was generated from the following files: