diff options
Diffstat (limited to 'os/rt/include/chmtx.h')
-rw-r--r-- | os/rt/include/chmtx.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/os/rt/include/chmtx.h b/os/rt/include/chmtx.h index a4ff5e49f..0444d936c 100644 --- a/os/rt/include/chmtx.h +++ b/os/rt/include/chmtx.h @@ -48,16 +48,21 @@ /*===========================================================================*/
/**
+ * @brief Type of a mutex structure.
+ */
+typedef struct mutex mutex_t;
+
+/**
* @brief Mutex structure.
*/
-typedef struct mutex {
+struct mutex {
threads_queue_t m_queue; /**< @brief Queue of the threads sleeping
on this mutex. */
thread_t *m_owner; /**< @brief Owner @p thread_t pointer or
@p NULL. */
mutex_t *m_next; /**< @brief Next @p mutex_t into an
owner-list or @p NULL. */
-} mutex_t;
+};
/*===========================================================================*/
/* Module macros. */
|