summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/schedulersimple.h
diff options
context:
space:
mode:
authorAndreas Dachsberger <andreas.dachsberger@embedded-brains.de>2019-04-12 13:16:01 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-05-13 07:42:04 +0200
commit776ec05e44cca6c36b854785f8c4b3eb91e0685f (patch)
tree67ad0f2cc6b63c20ad025f0520c3b3f270f87e64 /cpukit/include/rtems/score/schedulersimple.h
parentdoxygen: score: adjust doc in schedulerprioritysmp.h to doxygen guidelines (diff)
downloadrtems-776ec05e44cca6c36b854785f8c4b3eb91e0685f.tar.bz2
doxygen: score: adjust doc in schedulersimple.h to doxygen guidelines
Update #3706.
Diffstat (limited to 'cpukit/include/rtems/score/schedulersimple.h')
-rw-r--r--cpukit/include/rtems/score/schedulersimple.h67
1 files changed, 52 insertions, 15 deletions
diff --git a/cpukit/include/rtems/score/schedulersimple.h b/cpukit/include/rtems/score/schedulersimple.h
index 3f67e138af..028a5d6262 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
}