diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-10-10 14:01:55 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-02 10:05:40 +0100 |
commit | 2df4abcee2fd762a9688bef13e152d5b81cc763e (patch) | |
tree | 840277642e69e77c326aec7a4ff6322591cb1467 /cpukit/score/include/rtems/score/schedulersimple.h | |
parent | score: Pass scheduler node to update priority op (diff) | |
download | rtems-2df4abcee2fd762a9688bef13e152d5b81cc763e.tar.bz2 |
score: Pass scheduler node to yield operation
Changed for consistency with other scheduler operations.
Update #2556.
Diffstat (limited to 'cpukit/score/include/rtems/score/schedulersimple.h')
-rw-r--r-- | cpukit/score/include/rtems/score/schedulersimple.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/cpukit/score/include/rtems/score/schedulersimple.h b/cpukit/score/include/rtems/score/schedulersimple.h index 5d610691a6..d8bc02ed0d 100644 --- a/cpukit/score/include/rtems/score/schedulersimple.h +++ b/cpukit/score/include/rtems/score/schedulersimple.h @@ -92,26 +92,10 @@ void _Scheduler_simple_Schedule( Thread_Control *the_thread ); -/** - * @brief Invoked when a thread wishes to voluntarily - * transfer control of the processor to another thread in the queue. - * - * 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 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. - * - * @param[in] scheduler The scheduler instance. - * @param[in,out] the_thread The yielding thread. - */ Scheduler_Void_or_thread _Scheduler_simple_Yield( const Scheduler_Control *scheduler, - Thread_Control *the_thread + Thread_Control *the_thread, + Scheduler_Node *node ); /** |