Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Workaround lock around MITK rendering. More...
#include <QmlMitkBigRenderLock.h>
Public Member Functions | |
QmlMitkBigRenderLock (QObject *parent=0) | |
Static Public Member Functions | |
static QMutex & | GetMutex () |
Protected Member Functions | |
bool | eventFilter (QObject *obj, QEvent *event) |
Workaround lock around MITK rendering.
QtQuick renders in a thread, MITK datastructures do not tolerate this well. The current work-around is a big lock that delays signal delivery while rendering is in progress.
The proper solution would be to make data structures in rendering thread safe. This solution is much more work though, so it will come later.
Definition at line 34 of file QmlMitkBigRenderLock.h.
QmlMitkBigRenderLock::QmlMitkBigRenderLock | ( | QObject * | parent = 0 | ) |
Definition at line 26 of file QmlMitkBigRenderLock.cpp.
|
protected |
Definition at line 31 of file QmlMitkBigRenderLock.cpp.
References GetMutex().
|
static |
Definition at line 20 of file QmlMitkBigRenderLock.cpp.
Referenced by eventFilter().