summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/inline/tqdata.inl
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-03-06 21:34:57 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-03-06 21:34:57 +0000
commit1a8fde6ca27afea19faf9bf6487d8aa20b4a8d41 (patch)
tree209ab42fa9bc98774d5290d670af14886390d269 /c/src/exec/score/inline/tqdata.inl
parentRemoved prototyes for static inline rgutines and moved the comments into (diff)
downloadrtems-1a8fde6ca27afea19faf9bf6487d8aa20b4a8d41.tar.bz2
Removed prototyes for static inline routines and moved the comments into
the inline implementation. The impetus for this was twofold. First, it is incorrect to have static inline prototypes when using the macro implementation. Second, this reduced the number of lines in the include files seen by rtems.h by about 2000 lines. Next we restricted visibility for the inline routines to inside the executive itself EXCEPT for a handful of objects. This reduced the number of include files included by rtems.h by 40 files and reduced the lines in the include files seen by rtems.h by about 6000 lines. In total, these reduced the compile time of the entire RTEMS tree by 20%. This results in about 8 minutes savings on the SparcStation 10 morgana.
Diffstat (limited to 'c/src/exec/score/inline/tqdata.inl')
-rw-r--r--c/src/exec/score/inline/tqdata.inl20
1 files changed, 18 insertions, 2 deletions
diff --git a/c/src/exec/score/inline/tqdata.inl b/c/src/exec/score/inline/tqdata.inl
index b16b3a1ca1..c7d8630062 100644
--- a/c/src/exec/score/inline/tqdata.inl
+++ b/c/src/exec/score/inline/tqdata.inl
@@ -21,32 +21,44 @@
*
* _Thread_queue_Header_number
*
+ * DESCRIPTION:
+ *
+ * This function returns the index of the priority chain on which
+ * a thread of the_priority should be placed.
*/
STATIC INLINE unsigned32 _Thread_queue_Header_number (
Priority_Control the_priority
)
{
- return ( the_priority >> 6 );
+ return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER);
}
/*PAGE
*
* _Thread_queue_Is_reverse_search
*
+ * DESCRIPTION:
+ *
+ * This function returns TRUE if the_priority indicates that the
+ * enqueue search should start at the front of this priority
+ * group chain, and FALSE if the search should start at the rear.
*/
STATIC INLINE boolean _Thread_queue_Is_reverse_search (
Priority_Control the_priority
)
{
- return ( the_priority & 0x20 );
+ return ( the_priority & TASK_QUEUE_DATA_REVERSE_SEARCH_MASK );
}
/*PAGE
*
* _Thread_queue_Get_number_waiting
*
+ * DESCRIPTION:
+ *
+ * This function returns the number of threads waiting on this thread queue.
*/
STATIC INLINE unsigned32 _Thread_queue_Get_number_waiting (
@@ -60,6 +72,10 @@ STATIC INLINE unsigned32 _Thread_queue_Get_number_waiting (
*
* _Thread_queue_Enter_critical_section
*
+ * DESCRIPTION:
+ *
+ * This routine is invoked to indicate that the specified thread queue is
+ * entering a critical section.
*/
STATIC INLINE void _Thread_queue_Enter_critical_section (