diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-16 10:07:00 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-16 10:07:00 +0000 |
commit | cf204e72ea5fd6e4be8b3295cb148fde5fdd47d2 (patch) | |
tree | 5aae4b9a6c78c8f14c2a6ca8cd6446f42b3b29bd /os/rt/include/chmtx.h | |
parent | 641f2c372605cf405f0dda8536b45a78e0e5e2e2 (diff) | |
download | ChibiOS-cf204e72ea5fd6e4be8b3295cb148fde5fdd47d2.tar.gz ChibiOS-cf204e72ea5fd6e4be8b3295cb148fde5fdd47d2.tar.bz2 ChibiOS-cf204e72ea5fd6e4be8b3295cb148fde5fdd47d2.zip |
Tree reorganization.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8900 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/include/chmtx.h')
-rw-r--r-- | os/rt/include/chmtx.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/os/rt/include/chmtx.h b/os/rt/include/chmtx.h index caa0c8266..f1cc65a2f 100644 --- a/os/rt/include/chmtx.h +++ b/os/rt/include/chmtx.h @@ -55,14 +55,14 @@ typedef struct ch_mutex mutex_t; * @brief Mutex structure.
*/
struct ch_mutex {
- threads_queue_t m_queue; /**< @brief Queue of the threads sleeping
+ threads_queue_t queue; /**< @brief Queue of the threads sleeping
on this mutex. */
- thread_t *m_owner; /**< @brief Owner @p thread_t pointer or
+ thread_t *owner; /**< @brief Owner @p thread_t pointer or
@p NULL. */
- mutex_t *m_next; /**< @brief Next @p mutex_t into an
+ mutex_t *next; /**< @brief Next @p mutex_t into an
owner-list or @p NULL. */
#if (CH_CFG_USE_MUTEXES_RECURSIVE == TRUE) || defined(__DOXYGEN__)
- cnt_t m_cnt; /**< @brief Mutex recursion counter. */
+ cnt_t cnt; /**< @brief Mutex recursion counter. */
#endif
};
@@ -78,9 +78,9 @@ struct ch_mutex { * @param[in] name the name of the mutex variable
*/
#if (CH_CFG_USE_MUTEXES_RECURSIVE == TRUE) || defined(__DOXYGEN__)
-#define _MUTEX_DATA(name) {_THREADS_QUEUE_DATA(name.m_queue), NULL, NULL, 0}
+#define _MUTEX_DATA(name) {_THREADS_QUEUE_DATA(name.queue), NULL, NULL, 0}
#else
-#define _MUTEX_DATA(name) {_THREADS_QUEUE_DATA(name.m_queue), NULL, NULL}
+#define _MUTEX_DATA(name) {_THREADS_QUEUE_DATA(name.queue), NULL, NULL}
#endif
/**
@@ -130,7 +130,7 @@ static inline bool chMtxQueueNotEmptyS(mutex_t *mp) { chDbgCheckClassS();
- return queue_notempty(&mp->m_queue);
+ return queue_notempty(&mp->queue);
}
/**
@@ -143,7 +143,7 @@ static inline bool chMtxQueueNotEmptyS(mutex_t *mp) { */
static inline mutex_t *chMtxGetNextMutexS(void) {
- return chThdGetSelfX()->p_mtxlist;
+ return chThdGetSelfX()->mtxlist;
}
#endif /* CH_CFG_USE_MUTEXES == TRUE */
|