From 8568341d69d16609a3dcf71716a89839b16ac881 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 11 Jun 2014 14:31:03 +0200 Subject: score: Need for help indicator for scheduler ops Return a thread in need for help for the following scheduler operations - unblock, - change priority, and - yield. A thread in need for help is a thread that encounters a scheduler state change from scheduled to ready or a thread that cannot be scheduled in an unblock operation. Such a thread can ask threads which depend on resources owned by this thread for help. --- cpukit/score/src/schedulerprioritychangepriority.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit/score/src/schedulerprioritychangepriority.c') diff --git a/cpukit/score/src/schedulerprioritychangepriority.c b/cpukit/score/src/schedulerprioritychangepriority.c index 4f00af6ad6..06c5f0f7c6 100644 --- a/cpukit/score/src/schedulerprioritychangepriority.c +++ b/cpukit/score/src/schedulerprioritychangepriority.c @@ -21,7 +21,7 @@ #include -void _Scheduler_priority_Change_priority( +Scheduler_Void_or_thread _Scheduler_priority_Change_priority( const Scheduler_Control *scheduler, Thread_Control *the_thread, Priority_Control new_priority, @@ -58,4 +58,6 @@ void _Scheduler_priority_Change_priority( &context->Bit_map ); } + + SCHEDULER_RETURN_VOID_OR_NULL; } -- cgit v1.2.3