X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdSharedMemory.cxx;h=ea3383e80f65d04e078790dae5171cca4ea8927b;hb=ab8b8af6ee0f8dc16f70cc2e2f9b724674208398;hp=75aea8742ac701d6ebfde7bd1d2f6d036a8e567a;hpb=cfad95b6e08e6e53846ffcda7fbc5932065f2c47;p=bbtk.git diff --git a/packages/std/src/bbstdSharedMemory.cxx b/packages/std/src/bbstdSharedMemory.cxx index 75aea87..ea3383e 100644 --- a/packages/std/src/bbstdSharedMemory.cxx +++ b/packages/std/src/bbstdSharedMemory.cxx @@ -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);