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/scheduler.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 'cpukit/score/include/rtems/score/scheduler.h')
-rw-r--r-- | cpukit/score/include/rtems/score/scheduler.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/scheduler.h b/cpukit/score/include/rtems/score/scheduler.h index 9e08b23e4f..aa40e9ba9f 100644 --- a/cpukit/score/include/rtems/score/scheduler.h +++ b/cpukit/score/include/rtems/score/scheduler.h @@ -49,8 +49,12 @@ typedef struct { /** Implements the scheduling decision logic (policy). */ void ( *schedule )(void); - /** Voluntarily yields the processor per the scheduling policy. */ - void ( *yield )(void); + /** + * @brief Voluntarily yields the processor per the scheduling policy. + * + * @see _Scheduler_Yield(). + */ + void ( *yield )( Thread_Control *thread ); /** Removes the given thread from scheduling decisions. */ void ( *block )(Thread_Control *); |