Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7a361288
authored
Jan 30, 2016
by
Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dataflow_cpp: fixed test to represent the correct semantics of source processes
parent
2f7e8112
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
dataflow_cpp/test/dataflow_cpp_test_simple.cc
+11
-4
No files found.
dataflow_cpp/test/dataflow_cpp_test_simple.cc
View file @
7a361288
...
...
@@ -56,12 +56,19 @@ embb::base::Atomic<int> source_counter;
int
source_array
[
TEST_COUNT
];
bool
sourceFunc
(
int
&
out
)
{
out
=
source_counter
;
if
(
source_counter
<
TEST_COUNT
)
{
out
=
source_counter
;
source_array
[
source_counter
]
=
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment