]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkAtomicBlackBox.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkAtomicBlackBox.cxx
index 1dba6df361e943a0857a2fdaa979883317692e59..b826efcc7e31676d93e57184a35c8f6e3e64aebf 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkAtomicBlackBox.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/04/24 10:11:27 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2008/06/27 08:12:46 $
+  Version:   $Revision: 1.7 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -90,7 +90,10 @@ namespace bbtk
     if ( ( bbGetStatus() == MODIFIED ) ||
         ( bbBoxProcessModeIsAlways() ) )
       {
-        bool wasExecuting = bbGlobalGetSomeBoxExecuting();
+
+       bbSetStatus(UPDATING);
+       
+       bool wasExecuting = bbGlobalGetSomeBoxExecuting();
         bbGlobalSetSomeBoxExecuting(true);
 
         // Updates its inputs
@@ -100,16 +103,18 @@ namespace bbtk
         // If all inputs are in UPTODATE post-update status 
         // and mProcessMode is not "Always"
         // then the box is now UPTODATE
+       IOStatus new_status;
         if ( ( s == UPTODATE ) && 
             ( ! bbBoxProcessModeIsAlways() ) ) 
             {
-                bbSetStatus(UPTODATE);
+                new_status = UPTODATE;
             }
         else 
             {
                 // else it remains MODIFIED
-                bbSetStatus(MODIFIED);
+                 new_status = MODIFIED;
             }
+       bbSetStatus(new_status);
 
         // User process
         bbProcess();