From 6eba7c857b9e72bc4ed8e55f0c9538c45631484f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 10 Jun 2013 16:15:46 +0200 Subject: scheduler: Specify thread of yield operation The yielding thread of the yield operation is now specified by a parameter. The tick operation may be performed for each executing thread in a SMP configuration. --- cpukit/score/include/rtems/score/schedulersimple.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cpukit/score/include/rtems/score/schedulersimple.h') diff --git a/cpukit/score/include/rtems/score/schedulersimple.h b/cpukit/score/include/rtems/score/schedulersimple.h index 6682074b7c..47b74befbe 100644 --- a/cpukit/score/include/rtems/score/schedulersimple.h +++ b/cpukit/score/include/rtems/score/schedulersimple.h @@ -74,15 +74,17 @@ void _Scheduler_simple_Schedule( void ); * * This routine is invoked when a thread wishes to voluntarily * transfer control of the processor to another thread in the queue. - * It will remove the running THREAD from the scheduler.informaiton + * It will remove the specified THREAD from the scheduler.informaiton * (where the ready queue is stored) and place it immediately at the * between the last entry of its priority and the next priority thread. * Reset timeslice and yield the processor functions both use this routine, * therefore if reset is true and this is the only thread on the queue then * the timeslice counter is reset. The heir THREAD will be updated if the * running is also the currently the heir. -*/ -void _Scheduler_simple_Yield( void ); + * + * @param[in/out] thread The yielding thread. + */ +void _Scheduler_simple_Yield( Thread_Control *thread ); /** * @brief Remove a simple-priority-based thread from the queue. -- cgit v1.2.3