]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdSharedMemory.cxx
#3483 adaptor from string to long and long to string
[bbtk.git] / packages / std / src / bbstdSharedMemory.cxx
index 75aea8742ac701d6ebfde7bd1d2f6d036a8e567a..ea3383e80f65d04e078790dae5171cca4ea8927b 100644 (file)
@@ -60,7 +60,8 @@ namespace bbstd
            // Get the name of the input which changed
            std::string input_name = c->GetConnection()->GetBlackBoxToInput();
            // Set the output to the value of the input which changed
-           bbSetOutputOut( bbGetInput(input_name) );   
+           bbSetOutputOut( bbGetInput(input_name) );
+          printf("EED SharedMemory::bbSetStatusAndPropagate input_name:%s \n",input_name.c_str() );
          }
        // No more change allowed
        mCanSet = false;
@@ -70,7 +71,8 @@ namespace bbstd
 
   void SharedMemory::bbUserSetDefaultValues()
   {
-    mCanSet = true;
+    mCanSet    = true;
+       firsttime       = true;
   }
   void SharedMemory::bbUserInitializeProcessing() 
   { 
@@ -81,7 +83,12 @@ namespace bbstd
   void SharedMemory::DoProcess()
   { 
     mCanSet = true;
-  }
+       if (firsttime==true)
+       {
+               firsttime = false;
+           bbSetOutputOut( bbGetInputIn() );   
+       } // if firsttime
+}
 
   BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,SharedMemory);
   BBTK_BLACK_BOX_IMPLEMENTATION(SharedMemory,bbtk::AtomicBlackBox);