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
b9182d3d
authored
9 years ago
by
Christian Kern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development' into embb_523_rework_hazard_pointer
parents
132a4d59
56b4e070
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
README.md
+3
-3
tasks_cpp/test/tasks_cpp_test_task.cc
+10
-4
No files found.
README.md
View file @
b9182d3d
...
...
@@ -270,8 +270,8 @@ If you want to use the C++ functionalities of EMB², you have to link the
following libraries (names will be different on Windows and on Linux) in the
given order:
embb_
base, embb_base_cpp, embb_mtapi_c, embb_mtapi
_cpp, embb_containers_cpp,
embb_
algorithms_cpp, embb_dataflow_cpp
embb_
dataflow_cpp, embb_algorithms
_cpp, embb_containers_cpp,
embb_
mtapi_cpp, embb_mtapi_c, embb_base_cpp, embb_base_c
The C++ header files can be included as follows:
...
...
@@ -284,7 +284,7 @@ The C++ header files can be included as follows:
The following libraries have to be linked in the given order:
embb_
base_c, mtapi
_c
embb_
mtapi_c, embb_base
_c
The C header files can be included as follows:
...
...
This diff is collapsed.
Click to expand it.
tasks_cpp/test/tasks_cpp_test_task.cc
View file @
b9182d3d
...
...
@@ -78,13 +78,19 @@ void TaskTest::TestBasic() {
PT_EXPECT_EQ
(
policy
.
GetPriority
(),
0u
);
policy
.
AddWorker
(
0u
);
PT_EXPECT_EQ
(
policy
.
GetAffinity
(),
1u
);
policy
.
AddWorker
(
1u
);
PT_EXPECT_EQ
(
policy
.
GetAffinity
(),
3u
);
if
(
policy
.
GetCoreCount
()
>
1
)
{
policy
.
AddWorker
(
1u
);
PT_EXPECT_EQ
(
policy
.
GetAffinity
(),
3u
);
}
policy
.
RemoveWorker
(
0u
);
PT_EXPECT_EQ
(
policy
.
GetAffinity
(),
2u
);
PT_EXPECT_EQ
(
policy
.
IsSetWorker
(
0
),
false
);
PT_EXPECT_EQ
(
policy
.
IsSetWorker
(
1
),
true
);
if
(
policy
.
GetCoreCount
()
>
1
)
{
PT_EXPECT_EQ
(
policy
.
GetAffinity
(),
2u
);
PT_EXPECT_EQ
(
policy
.
IsSetWorker
(
1
),
true
);
}
std
::
string
test
;
embb
::
tasks
::
Task
task
=
node
.
Spawn
(
embb
::
base
::
Bind
(
...
...
This diff is collapsed.
Click to expand it.
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