summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/schedulerpriority.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-06-10 16:15:46 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-06-14 16:26:08 +0200
commit6eba7c857b9e72bc4ed8e55f0c9538c45631484f (patch)
tree09847feda8d2183412ab57d59602b3f08481d2ae /cpukit/score/include/rtems/score/schedulerpriority.h
parentscheduler: Add start idle thread operation (diff)
downloadrtems-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 'cpukit/score/include/rtems/score/schedulerpriority.h')
-rw-r--r--cpukit/score/include/rtems/score/schedulerpriority.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/score/include/rtems/score/schedulerpriority.h b/cpukit/score/include/rtems/score/schedulerpriority.h
index 81c3582e76..f0582c1315 100644
--- a/cpukit/score/include/rtems/score/schedulerpriority.h
+++ b/cpukit/score/include/rtems/score/schedulerpriority.h
@@ -145,12 +145,12 @@ void _Scheduler_priority_Unblock(
);
/**
- * @brief Remove the running THREAD to the rear of this chain.
+ * @brief The specified THREAD yields.
*
* This routine is invoked when a thread wishes to voluntarily
* transfer control of the processor to another thread in the queue.
*
- * This routine will remove the running THREAD from the ready queue
+ * This routine will remove the specified THREAD from the ready queue
* and place it immediately at the rear of this chain. 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
@@ -160,8 +160,10 @@ void _Scheduler_priority_Unblock(
* - INTERRUPT LATENCY:
* + ready chain
* + select heir
+ *
+ * @param[in/out] thread The yielding thread.
*/
-void _Scheduler_priority_Yield( void );
+void _Scheduler_priority_Yield( Thread_Control *thread );
/**
* @brief Puts @a the_thread on to the priority-based ready queue.