Commit 1ba533bb by Tobias Langer

Added GEDF-Scheduler function.

parent 132011c6
......@@ -169,6 +169,24 @@ embb_mtapi_task_t * embb_mtapi_scheduler_get_next_task_lf(
return task;
}
#ifdef EMBB_HARD_REALTIME
embb_mtapi_task_t * embb_mtapi_scheduler_get_next_task_gedf(
embb_mtapi_scheduler_t * that,
embb_mtapi_node_t * node,
embb_mtapi_thread_context_t * thread_context) {
embb_mtapi_task_t * task = MTAPI_NULL;
EMBB_UNUSED(thread_context);
assert(MTAPI_NULL != that);
assert(MTAPI_NULL != node);
task = embb_mtapi_task_queue_pop(&node->global_task_queue);
return task;
}
#endif /*EMBB_HARD_REALTIME*/
embb_mtapi_task_t * embb_mtapi_scheduler_get_next_task(
embb_mtapi_scheduler_t * that,
embb_mtapi_node_t * node,
......@@ -188,6 +206,12 @@ embb_mtapi_task_t * embb_mtapi_scheduler_get_next_task(
task = embb_mtapi_scheduler_get_next_task_vhpf(
that, node, thread_context);
break;
#ifdef EMBB_HARD_REALTIME
case GLOBAL_EDF:
task = embb_mtapi_scheduler_get_next_task_gedf(
that, node, thread_context);
break;
#endif /*EMBB_HARD_REALTIME*/
case NUM_SCHEDULER_MODES:
default:
embb_mtapi_log_error(
......
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