Commit 7a361288 by Winter

dataflow_cpp: fixed test to represent the correct semantics of source processes

parent 2f7e8112
......@@ -56,12 +56,19 @@ embb::base::Atomic<int> source_counter;
int source_array[TEST_COUNT];
bool sourceFunc(int & out) {
if (source_counter < TEST_COUNT)
{
out = source_counter;
source_array[source_counter] = out;
source_counter++;
return source_counter < TEST_COUNT;
return true;
}
else
{
return false;
}
}
embb::base::Atomic<int> pred_counter;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment