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
0deb6bf8
authored
Apr 15, 2016
by
lucapegolotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
containers_cpp: minor problems fix in blocking container tests
parent
173916a8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
containers_cpp/test/blocking_container_test-inl.h
+1
-1
containers_cpp/test/blocking_container_test.h
+5
-6
No files found.
containers_cpp/test/blocking_container_test-inl.h
View file @
0deb6bf8
...
@@ -104,7 +104,7 @@ void BlockingContainerTest<Container_t>::BlockingContainerTest1_ThreadMethod() {
...
@@ -104,7 +104,7 @@ void BlockingContainerTest<Container_t>::BlockingContainerTest1_ThreadMethod() {
for
(
std
::
vector
<
int
>::
iterator
it
=
my_elements
.
begin
();
for
(
std
::
vector
<
int
>::
iterator
it
=
my_elements
.
begin
();
it
!=
my_elements
.
end
();
it
!=
my_elements
.
end
();
++
it
)
{
++
it
)
{
Specialize
z
dPush
(
*
it
);
SpecializedPush
(
*
it
);
}
}
my_elements
.
clear
();
my_elements
.
clear
();
...
...
containers_cpp/test/blocking_container_test.h
View file @
0deb6bf8
...
@@ -35,7 +35,7 @@ namespace containers {
...
@@ -35,7 +35,7 @@ namespace containers {
namespace
test
{
namespace
test
{
template
<
typename
Container_t
>
template
<
typename
Container_t
>
class
BlockingContainerTest
:
public
partest
::
TestCase
{
class
BlockingContainerTest
:
public
partest
::
TestCase
{
pr
ivate
:
pr
otected
:
int
n_threads
;
int
n_threads
;
int
n_iterations
;
int
n_iterations
;
int
n_container_elements_per_thread
;
int
n_container_elements_per_thread
;
...
@@ -44,6 +44,10 @@ class BlockingContainerTest : public partest::TestCase {
...
@@ -44,6 +44,10 @@ class BlockingContainerTest : public partest::TestCase {
std
::
vector
<
int
>
expected_container_elements
;
std
::
vector
<
int
>
expected_container_elements
;
std
::
vector
<
int
>*
thread_local_vectors
;
std
::
vector
<
int
>*
thread_local_vectors
;
virtual
void
SpecializedPush
(
const
int
&
element
)
=
0
;
virtual
void
SpecializedPop
(
int
&
element
)
=
0
;
public
:
public
:
BlockingContainerTest
();
BlockingContainerTest
();
...
@@ -53,11 +57,6 @@ class BlockingContainerTest : public partest::TestCase {
...
@@ -53,11 +57,6 @@ class BlockingContainerTest : public partest::TestCase {
void
BlockingContainerTest1_ThreadMethod
();
void
BlockingContainerTest1_ThreadMethod
();
protected
:
virtual
void
SpecializedPush
(
const
int
&
element
)
=
0
;
virtual
void
SpecializedPop
(
int
&
element
)
=
0
;
};
};
}
// namespace test
}
// namespace test
}
// namespace containers
}
// namespace containers
...
...
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