0029750: Samples - function arrows are not updated by moving a node in FuncDemo qt...
[occt.git] / samples / qt / FuncDemo / src / PointDriver.cpp
index 3f10412..03aa733 100644 (file)
@@ -47,9 +47,15 @@ Standard_Integer PointDriver::Execute(Handle(TFunction_Logbook)& log) const
     // Make the result
     TopoDS_Vertex V = BRepBuilderAPI_MakeVertex(gp_Pnt(x, y, z));
 
+    if (myMutex)
+        myMutex->Lock();
+
     // Set the result
     TNaming_Builder B(Label());
     B.Generated(V);
 
+    if (myMutex)
+        myMutex->Unlock();
+
     return BaseDriver::Execute(log);
 }
\ No newline at end of file