[rtems commit] doxygen: score: adjust doc in schedulersimple.h to doxygen guidelines
Sebastian Huber
sebh at rtems.org
Mon May 13 05:52:28 UTC 2019
Module: rtems
Branch: master
Commit: 776ec05e44cca6c36b854785f8c4b3eb91e0685f
Changeset: http://git.rtems.org/rtems/commit/?id=776ec05e44cca6c36b854785f8c4b3eb91e0685f
Author: Andreas Dachsberger <andreas.dachsberger at embedded-brains.de>
Date: Fri Apr 12 13:16:01 2019 +0200
doxygen: score: adjust doc in schedulersimple.h to doxygen guidelines
Update #3706.
---
cpukit/include/rtems/score/schedulersimple.h | 67 +++++++++++++++++++++-------
1 file changed, 52 insertions(+), 15 deletions(-)
diff --git a/cpukit/include/rtems/score/schedulersimple.h b/cpukit/include/rtems/score/schedulersimple.h
index 3f67e13..028a5d6 100644
--- a/cpukit/include/rtems/score/schedulersimple.h
+++ b/cpukit/include/rtems/score/schedulersimple.h
@@ -1,10 +1,12 @@
/**
- * @file
+ * @file
*
- * @brief Manipulation of Threads Simple-Priority-Based Ready Queue
+ * @ingroup RTEMSScoreSchedulerSimple
*
- * This include file contains all the constants and structures associated
- * with the manipulation of threads on a simple-priority-based ready queue.
+ * @brief Manipulation of Threads Simple-Priority-Based Ready Queue
+ *
+ * This include file contains all the constants and structures associated
+ * with the manipulation of threads on a simple-priority-based ready queue.
*/
/*
@@ -26,11 +28,14 @@ extern "C" {
#endif
/**
- * @defgroup RTEMSScoreSchedulerSimple Simple Priority Scheduler
+ * @defgroup RTEMSScoreSchedulerSimple Simple Priority Scheduler
+ *
+ * @ingroup RTEMSScoreScheduler
+ *
+ * @brief Simple Priority Scheduler
*
- * @ingroup RTEMSScoreScheduler
+ * @{
*/
-/**@{*/
#define SCHEDULER_SIMPLE_MAXIMUM_PRIORITY 255
@@ -73,50 +78,82 @@ typedef struct {
} Scheduler_simple_Context;
/**
- * @brief Initialize simple scheduler.
+ * @brief Initializes simple scheduler.
*
- * This routine initializes the simple scheduler.
+ * This routine initializes the simple scheduler.
+ *
+ * @param scheduler The scheduler to be initialized.
*/
void _Scheduler_simple_Initialize( const Scheduler_Control *scheduler );
/**
- * This routine sets the heir thread to be the next ready thread
- * on the ready queue by getting the first node in the scheduler
- * information.
+ * @brief Schedules threads.
+ *
+ * This routine sets the heir thread to be the next ready thread
+ * on the ready queue by getting the first node in the scheduler
+ * information.
*
- * @param[in] scheduler The scheduler instance.
- * @param[in] the_thread causing the scheduling operation.
+ * @param scheduler The scheduler instance.
+ * @param the_thread causing the scheduling operation.
*/
void _Scheduler_simple_Schedule(
const Scheduler_Control *scheduler,
Thread_Control *the_thread
);
+/**
+ * @brief Performs the yield of a thread.
+ *
+ * @param scheduler The scheduler instance.
+ * @param[in, out] the_thread The thread that performed the yield operation.
+ * @param node The scheduler node of @a the_thread.
+ */
void _Scheduler_simple_Yield(
const Scheduler_Control *scheduler,
Thread_Control *the_thread,
Scheduler_Node *node
);
+/**
+ * @brief Blocks the thread.
+ *
+ * @param scheduler The scheduler instance.
+ * @param[in, out] the_thread The thread to block.
+ * @param[in, out] node The @a thread's scheduler node.
+ */
void _Scheduler_simple_Block(
const Scheduler_Control *scheduler,
Thread_Control *the_thread,
Scheduler_Node *node
);
+/**
+ * @brief Unblocks the thread.
+ *
+ * @param scheduler The scheduler instance.
+ * @param[in, out] the_thread The thread to unblock.
+ * @param[in, out] node The @a thread's scheduler node.
+ */
void _Scheduler_simple_Unblock(
const Scheduler_Control *scheduler,
Thread_Control *the_thread,
Scheduler_Node *node
);
+/**
+ * @brief Updates the priority of the node.
+ *
+ * @param scheduler The scheduler instance.
+ * @param the_thread The thread for the operation.
+ * @param node The thread's scheduler node.
+ */
void _Scheduler_simple_Update_priority(
const Scheduler_Control *scheduler,
Thread_Control *the_thread,
Scheduler_Node *node
);
-/**@}*/
+/** @} */
#ifdef __cplusplus
}
More information about the vc
mailing list