summaryrefslogtreecommitdiffstats
path: root/cpukit/score/inline/rtems/score/scheduler.inl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cpukit/score/inline/rtems/score/scheduler.inl114
1 files changed, 64 insertions, 50 deletions
diff --git a/cpukit/score/inline/rtems/score/scheduler.inl b/cpukit/score/inline/rtems/score/scheduler.inl
index 227cabc399..fcb9f19e88 100644
--- a/cpukit/score/inline/rtems/score/scheduler.inl
+++ b/cpukit/score/inline/rtems/score/scheduler.inl
@@ -1,8 +1,10 @@
-/**
- * @file rtems/score/scheduler.inl
+/**
+ * @file
+ *
+ * @brief Inlined Routines Associated with the Manipulation of the Scheduler
*
- * This inline file contains all of the inlined routines associated with
- * the manipulation of the scheduler.
+ * This inline file contains all of the inlined routines associated with
+ * the manipulation of the scheduler.
*/
/*
@@ -22,135 +24,146 @@
#define _RTEMS_SCORE_SCHEDULER_INL
/**
- * @addtogroup ScoreScheduler
+ * @addtogroup ScoreScheduler
+ *
* @{
*/
/**
- * The preferred method to add a new scheduler is to define the jump table
- * entries and add a case to the _Scheduler_Initialize routine.
+ * The preferred method to add a new scheduler is to define the jump table
+ * entries and add a case to the _Scheduler_Initialize routine.
*
- * Generic scheduling implementations that rely on the ready queue only can
+ * Generic scheduling implementations that rely on the ready queue only can
* be found in the _Scheduler_queue_XXX functions.
- *
*/
-/* Passing the Scheduler_Control* to these functions allows for multiple
- * scheduler's to exist simultaneously, which could be useful on an SMP
- * system. Then remote Schedulers may be accessible. How to protect such
+/*
+ * Passing the Scheduler_Control* to these functions allows for multiple
+ * scheduler's to exist simultaneously, which could be useful on an SMP
+ * system. Then remote Schedulers may be accessible. How to protect such
* accesses remains an open problem.
*/
-/** @brief _Scheduler_Schedule
+/**
+ * @brief Scheduler schedule.
*
- * This kernel routine implements the scheduling decision logic for
- * the scheduler. It does NOT dispatch.
+ * This kernel routine implements the scheduling decision logic for
+ * the scheduler. It does NOT dispatch.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Schedule( void )
{
_Scheduler.Operations.schedule();
}
-/** @brief _Scheduler_Yield
+/**
+ * @brief Scheduler yield.
*
- * This routine is invoked when a thread wishes to voluntarily
- * transfer control of the processor to another thread. This routine
- * always operates on the scheduler that 'owns' the currently executing
- * thread.
+ * This routine is invoked when a thread wishes to voluntarily
+ * transfer control of the processor to another thread. This routine
+ * always operates on the scheduler that 'owns' the currently executing
+ * thread.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void )
{
_Scheduler.Operations.yield();
}
-/** @brief _Scheduler_Block
+/**
+ * @brief Scheduler block.
*
- * This routine removes @a the_thread from the scheduling decision for
- * the scheduler. The primary task is to remove the thread from the
- * ready queue. It performs any necessary schedulering operations
- * including the selection of a new heir thread.
+ * This routine removes @a the_thread from the scheduling decision for
+ * the scheduler. The primary task is to remove the thread from the
+ * ready queue. It performs any necessary schedulering operations
+ * including the selection of a new heir thread.
*/
-RTEMS_INLINE_ROUTINE void _Scheduler_Block(
- Thread_Control *the_thread
+RTEMS_INLINE_ROUTINE void _Scheduler_Block(
+ Thread_Control *the_thread
)
{
_Scheduler.Operations.block( the_thread );
}
-/** @brief _Scheduler_Unblock
+/**
+ * @brief Scheduler unblock.
*
- * This routine adds @a the_thread to the scheduling decision for
- * the scheduler. The primary task is to add the thread to the
- * ready queue per the schedulering policy and update any appropriate
- * scheduling variables, for example the heir thread.
+ * This routine adds @a the_thread to the scheduling decision for
+ * the scheduler. The primary task is to add the thread to the
+ * ready queue per the schedulering policy and update any appropriate
+ * scheduling variables, for example the heir thread.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Unblock(
- Thread_Control *the_thread
+ Thread_Control *the_thread
)
{
_Scheduler.Operations.unblock( the_thread );
}
-/** @brief _Scheduler_Allocate
+/**
+ * @brief Scheduler allocate.
*
* This routine allocates @a the_thread->scheduler
*/
-RTEMS_INLINE_ROUTINE void* _Scheduler_Allocate(
+RTEMS_INLINE_ROUTINE void* _Scheduler_Allocate(
Thread_Control *the_thread
)
{
return _Scheduler.Operations.allocate( the_thread );
}
-/** @brief _Scheduler_Free
+/**
+ * @brief Scheduler free.
*
* This routine frees @a the_thread->scheduler
*/
-RTEMS_INLINE_ROUTINE void _Scheduler_Free(
+RTEMS_INLINE_ROUTINE void _Scheduler_Free(
Thread_Control *the_thread
)
{
return _Scheduler.Operations.free( the_thread );
}
-/** @brief _Scheduler_Update
+/**
+ * @brief Scheduler update.
*
* This routine updates @a the_thread->scheduler
*/
-RTEMS_INLINE_ROUTINE void _Scheduler_Update(
+RTEMS_INLINE_ROUTINE void _Scheduler_Update(
Thread_Control *the_thread
)
{
_Scheduler.Operations.update( the_thread );
}
-/** @brief _Scheduler_Enqueue
+/**
+ * @brief Scheduler enqueue.
*
* This routine enqueue @a the_thread->scheduler
*/
-RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue(
+RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue(
Thread_Control *the_thread
)
{
_Scheduler.Operations.enqueue( the_thread );
}
-/** @brief _Scheduler_Enqueue_first
+/**
+ * @brief Scheduler enqueue first.
*
* This routine enqueue_first @a the_thread->scheduler
*/
-RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first(
+RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first(
Thread_Control *the_thread
)
{
_Scheduler.Operations.enqueue_first( the_thread );
}
-/** @brief _Scheduler_Extract
+/**
+ * @brief Scheduler extract.
*
* This routine extract @a the_thread->scheduler
*/
-RTEMS_INLINE_ROUTINE void _Scheduler_Extract(
+RTEMS_INLINE_ROUTINE void _Scheduler_Extract(
Thread_Control *the_thread
)
{
@@ -158,7 +171,7 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Extract(
}
/**
- * @brief Scheduler Priority compare
+ * @brief Scheduler priority compare.
*
* This routine compares two priorities.
*/
@@ -171,7 +184,7 @@ RTEMS_INLINE_ROUTINE int _Scheduler_Priority_compare(
}
/**
- * @brief Scheduler Release job
+ * @brief Scheduler release job.
*
* This routine is called when a new period of task is issued.
*/
@@ -183,10 +196,11 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Release_job(
_Scheduler.Operations.release_job(the_thread, length);
}
-/** @brief Scheduler Method Invoked at Each Clock Tick
+/**
+ * @brief Scheduler method invoked at each clock tick.
*
* This method is invoked at each clock tick to allow the scheduler
- * implementation to perform any activities required. For the
+ * implementation to perform any activities required. For the
* scheduler which support standard RTEMS features, this includes
* time-slicing management.
*/
@@ -195,7 +209,7 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Tick( void )
_Scheduler.Operations.tick();
}
-/**@}*/
+/** @} */
#endif
/* end of include file */