// 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;
void SharedMemory::bbUserSetDefaultValues()
{
- mCanSet = true;
+ mCanSet = true;
+ firsttime = true;
}
void SharedMemory::bbUserInitializeProcessing()
{
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);