Commit c928c9f8 by Tobias Langer

Added GEDF-Scheduler function.

parent 5d6e1751
...@@ -169,6 +169,24 @@ embb_mtapi_task_t * embb_mtapi_scheduler_get_next_task_lf( ...@@ -169,6 +169,24 @@ embb_mtapi_task_t * embb_mtapi_scheduler_get_next_task_lf(
return task; 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_task_t * embb_mtapi_scheduler_get_next_task(
embb_mtapi_scheduler_t * that, embb_mtapi_scheduler_t * that,
embb_mtapi_node_t * node, embb_mtapi_node_t * node,
...@@ -188,6 +206,12 @@ embb_mtapi_task_t * embb_mtapi_scheduler_get_next_task( ...@@ -188,6 +206,12 @@ embb_mtapi_task_t * embb_mtapi_scheduler_get_next_task(
task = embb_mtapi_scheduler_get_next_task_vhpf( task = embb_mtapi_scheduler_get_next_task_vhpf(
that, node, thread_context); that, node, thread_context);
break; 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: case NUM_SCHEDULER_MODES:
default: default:
embb_mtapi_log_error( 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