aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include/chmtx.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-16 17:41:56 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-16 17:41:56 +0000
commitbfa3ba9f00d263a15d6d6b2dec2aa0b81058df27 (patch)
tree817fc88a260e36d897b48dce522f2057b15346e0 /os/rt/include/chmtx.h
parent752b44ba0e550159fb6d2372c54a278fb94080eb (diff)
downloadChibiOS-bfa3ba9f00d263a15d6d6b2dec2aa0b81058df27.tar.gz
ChibiOS-bfa3ba9f00d263a15d6d6b2dec2aa0b81058df27.tar.bz2
ChibiOS-bfa3ba9f00d263a15d6d6b2dec2aa0b81058df27.zip
Turned more macros in inline functions.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6166 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/include/chmtx.h')
-rw-r--r--os/rt/include/chmtx.h9
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. */