Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Tobias Langer
/
experiment
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
33a1d208
authored
Oct 11, 2016
by
Tobias Langer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create deadlinepolicy before hand.
parent
49201196
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
templates/normal/experiment.cpp
+3
-2
No files found.
templates/normal/experiment.cpp
View file @
33a1d208
...
...
@@ -137,12 +137,14 @@ static void TaskStarter()
auto
hyperperiod
=
calculate_hyperperiod
();
/* Initialize deadlines for every task */
embb
::
mtapi
::
ExecutionPolicy
deadline_policy
[
taskset_length
];
for
(
int
i
=
0
;
i
<
taskset_length
;
i
++
)
{
node
.
CreateAction
(
ACTION_ID
+
i
+
1
,
IdleTask
);
deadline_policy
[
i
]
=
embb
::
mtapi
::
ExecutionPolicy
(
embb_time_base
(
taskset
[
i
].
deadline
));
}
using
namespace
std
::
chrono
;
start
=
base_clock
::
now
();
std
::
cerr
<<
"Starting TaskStarter thread at: "
;
...
...
@@ -173,7 +175,6 @@ static void TaskStarter()
}
if
(
count
>
taskset
[
i
].
count
)
{
embb
::
mtapi
::
ExecutionPolicy
deadline_policy
(
embb_time_base
(
taskset
[
i
].
deadline
));
/* Store parameters for execution.
* The count may change during the execution, therefore we have
* to make sure that all possible running tasks can access their
...
...
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