Commit 33a1d208 by Tobias Langer

Create deadlinepolicy before hand.

parent 49201196
......@@ -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
......
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