diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-10 16:15:46 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-14 16:26:08 +0200 |
commit | 6eba7c857b9e72bc4ed8e55f0c9538c45631484f (patch) | |
tree | 09847feda8d2183412ab57d59602b3f08481d2ae /cpukit/score/include/rtems/score/schedulersimple.h | |
parent | scheduler: Add start idle thread operation (diff) | |
download | rtems-6eba7c857b9e72bc4ed8e55f0c9538c45631484f.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/schedulersimple.h | 8 |
1 files changed, 5 insertions, 3 deletions
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. |