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/chsem.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/chsem.h')
-rw-r--r-- | os/rt/include/chsem.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/os/rt/include/chsem.h b/os/rt/include/chsem.h index efc1cea0b..c555c550e 100644 --- a/os/rt/include/chsem.h +++ b/os/rt/include/chsem.h @@ -50,9 +50,9 @@ * @brief Semaphore structure.
*/
typedef struct ch_semaphore {
- threads_queue_t s_queue; /**< @brief Queue of the threads sleeping
+ threads_queue_t queue; /**< @brief Queue of the threads sleeping
on this semaphore. */
- cnt_t s_cnt; /**< @brief The semaphore counter. */
+ cnt_t cnt; /**< @brief The semaphore counter. */
} semaphore_t;
/*===========================================================================*/
@@ -68,7 +68,7 @@ typedef struct ch_semaphore { * @param[in] n the counter initial value, this value must be
* non-negative
*/
-#define _SEMAPHORE_DATA(name, n) {_THREADS_QUEUE_DATA(name.s_queue), n}
+#define _SEMAPHORE_DATA(name, n) {_THREADS_QUEUE_DATA(name.queue), n}
/**
* @brief Static semaphore initializer.
@@ -119,7 +119,7 @@ static inline void chSemFastWaitI(semaphore_t *sp) { chDbgCheckClassI();
- sp->s_cnt--;
+ sp->cnt--;
}
/**
@@ -135,7 +135,7 @@ static inline void chSemFastSignalI(semaphore_t *sp) { chDbgCheckClassI();
- sp->s_cnt++;
+ sp->cnt++;
}
/**
@@ -150,7 +150,7 @@ static inline cnt_t chSemGetCounterI(semaphore_t *sp) { chDbgCheckClassI();
- return sp->s_cnt;
+ return sp->cnt;
}
#endif /* CH_CFG_USE_SEMAPHORES == TRUE */
|