summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/inline/rtems/posix/spinlock.inl
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/inline/rtems/posix/spinlock.inl')
-rw-r--r--cpukit/posix/inline/rtems/posix/spinlock.inl43
1 files changed, 26 insertions, 17 deletions
diff --git a/cpukit/posix/inline/rtems/posix/spinlock.inl b/cpukit/posix/inline/rtems/posix/spinlock.inl
index 0924e5ad3d..b8ababda02 100644
--- a/cpukit/posix/inline/rtems/posix/spinlock.inl
+++ b/cpukit/posix/inline/rtems/posix/spinlock.inl
@@ -1,5 +1,7 @@
/**
- * @file rtems/posix/spinlock.inl
+ * @file
+ *
+ * @brief Inlined Routines from the POSIX Spinlock Manager
*
* This file contains the static inlin implementation of the inlined
* routines from the POSIX Spinlock Manager.
@@ -24,10 +26,10 @@
#include <pthread.h>
/**
- * @brief _POSIX_Spinlock_Allocate
+ * @brief Allocate a spinlock control block.
*
- * This function allocates a spinlock control block from
- * the inactive chain of free spinlock control blocks.
+ * This function allocates a spinlock control block from
+ * the inactive chain of free spinlock control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Allocate( void )
{
@@ -36,10 +38,10 @@ RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Allocate( void )
}
/**
- * @brief _POSIX_Spinlock_Free
+ * @brief Free a spinlock control block.
*
- * This routine frees a spinlock control block to the
- * inactive chain of free spinlock control blocks.
+ * This routine frees a spinlock control block to the
+ * inactive chain of free spinlock control blocks.
*/
RTEMS_INLINE_ROUTINE void _POSIX_Spinlock_Free (
POSIX_Spinlock_Control *the_spinlock
@@ -49,15 +51,15 @@ RTEMS_INLINE_ROUTINE void _POSIX_Spinlock_Free (
}
/**
- * @brief _POSIX_Spinlock_Get
+ * @brief Get a spinlock control block.
*
- * This function maps spinlock IDs to spinlock control blocks.
- * If ID corresponds to a local spinlock, then it returns
- * the_spinlock control pointer which maps to ID and location
- * is set to OBJECTS_LOCAL. if the spinlock ID is global and
- * resides on a remote node, then location is set to OBJECTS_REMOTE,
- * and the_spinlock is undefined. Otherwise, location is set
- * to OBJECTS_ERROR and the_spinlock is undefined.
+ * This function maps spinlock IDs to spinlock control blocks.
+ * If ID corresponds to a local spinlock, then it returns
+ * the_spinlock control pointer which maps to ID and location
+ * is set to OBJECTS_LOCAL. if the spinlock ID is global and
+ * resides on a remote node, then location is set to OBJECTS_REMOTE,
+ * and the_spinlock is undefined. Otherwise, location is set
+ * to OBJECTS_ERROR and the_spinlock is undefined.
*/
RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get (
pthread_spinlock_t *spinlock,
@@ -72,9 +74,16 @@ RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get (
}
/**
- * @brief _POSIX_Spinlock_Is_null
+ * @brief Check if a spinlock control block is NULL.
*
- * This function returns TRUE if the_spinlock is NULL and FALSE otherwise.
+ * This function returns @c TRUE if the_spinlock is @c NULL and @c FALSE
+ * otherwise.
+ *
+ * @param[in] the_spinlock is the pointer to the spinlock control block
+ * to be checked.
+ *
+ * @retval TRUE The spinlock control block is @c NULL.
+ * @retval FALSE The spinlock control block is not @c NULL.
*/
RTEMS_INLINE_ROUTINE bool _POSIX_Spinlock_Is_null (
POSIX_Spinlock_Control *the_spinlock