CustusX
16.5.0-rc9
An IGT application
|
#include <cxDataReaderWriter.h>
Public Member Functions | |
StaticMutexVtkLocker () | |
~StaticMutexVtkLocker () | |
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:
Note: Googling indicates that VTK in general is threadUNsafe.
Definition at line 71 of file cxDataReaderWriter.h.
cx::StaticMutexVtkLocker::StaticMutexVtkLocker | ( | ) |
Definition at line 87 of file cxDataReaderWriter.cpp.
cx::StaticMutexVtkLocker::~StaticMutexVtkLocker | ( | ) |
Definition at line 94 of file cxDataReaderWriter.cpp.