monitor and threads
This commit is contained in:
@@ -68,6 +68,7 @@ vtkPolyData *vtkContainerBox::GetPolyData() const {
|
||||
|
||||
|
||||
void vtkContainerBox::contentUpdate() {
|
||||
RecursiveMutex::ScopedLock lock(this->m_UpdateMutex);
|
||||
if (!m_Content)
|
||||
return;
|
||||
|
||||
@@ -95,6 +96,7 @@ void vtkContainerBox::contentUpdate() {
|
||||
|
||||
|
||||
void vtkContainerBox::Update() {
|
||||
RecursiveMutex::ScopedLock lock(this->m_UpdateMutex);
|
||||
if (!m_Content) return;
|
||||
|
||||
if (m_BlockUpdate) {
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <vector>
|
||||
#include "Core/Object.h"
|
||||
#include "Core/Property.h"
|
||||
#include "Core/Monitor.h"
|
||||
|
||||
// vtk classes forward declaration //
|
||||
class vtkProp;
|
||||
@@ -112,6 +113,7 @@ protected:
|
||||
void RemoveProp(vtkProp *prop);
|
||||
|
||||
std::vector<uLib::PropertyBase*> m_DisplayProperties;
|
||||
mutable uLib::RecursiveMutex m_UpdateMutex;
|
||||
|
||||
private:
|
||||
Puppet(const Puppet&) = delete;
|
||||
|
||||
Reference in New Issue
Block a user