]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Another fix, on thread safety
authorapo <apo@opencascade.com>
Sat, 1 Dec 2007 15:16:58 +0000 (15:16 +0000)
committerapo <apo@opencascade.com>
Sat, 1 Dec 2007 15:16:58 +0000 (15:16 +0000)
src/VISU_I/VISU_Result_i.cc

index 1af2d9dd06f20c9c709e92adf52379a3b25ff94b..33fdd9da09f8e19c34feeca24c656d1e9fa50547 100644 (file)
@@ -236,7 +236,23 @@ void
 VISU::Result_i
 ::UpdateObservers()
 {
-  myUpdateObserverSignal();
+  struct TEvent: public SALOME_Event
+  {
+    VISU::Result_i::TUpdateObserverSignal& myUpdateObserverSignal;
+
+    TEvent(VISU::Result_i::TUpdateObserverSignal& theUpdateObserverSignal):
+      myUpdateObserverSignal(theUpdateObserverSignal)
+    {}
+    
+    virtual
+    void
+    Execute()
+    {
+      myUpdateObserverSignal();
+    }
+  };
+
+  ProcessVoidEvent(new TEvent(myUpdateObserverSignal));
 }