]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Apply debug
authorapo <apo@opencascade.com>
Mon, 12 Dec 2005 08:01:53 +0000 (08:01 +0000)
committerapo <apo@opencascade.com>
Mon, 12 Dec 2005 08:01:53 +0000 (08:01 +0000)
src/VVTK/VVTK_ImageWriterMgr.cxx
src/VVTK/VVTK_ImageWriterMgr.h

index 68b6d163c3986dda094afde3389b5589a9086b68..bc9d364e0145f2d5b7321cc195a41f65d32cfab5 100755 (executable)
@@ -98,10 +98,8 @@ VVTK_ImageWriterMgr
 \r
   for(size_t anId = 0, anEnd = myThreads.size(); anId < anEnd; anId++){\r
     VVTK_ImageWriter* anImageWriter = myThreads[anId];\r
-    while(!anImageWriter->finished())\r
-      sleep(100);\r
+    anImageWriter->wait();\r
     delete anImageWriter;\r
   }\r
-\r
   myThreads.clear();\r
 }\r
index c016edc6dfb471bcd21096aeac26cf3ff5f5490e..81ca97fbdb3554ea2468f3bb152f05e898232f34 100755 (executable)
@@ -52,8 +52,9 @@ class VVTK_ImageWriterMgr
   void\r
   Stop();\r
 \r
- protected:\r
   typedef std::vector<VVTK_ImageWriter*> TWriterThreads;\r
+\r
+ protected:\r
   TWriterThreads myThreads;\r
 \r
   QSemaphore* mySemaphore;\r