diff options
Diffstat (limited to 'src/include/semaphores.h')
-rw-r--r-- | src/include/semaphores.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/semaphores.h b/src/include/semaphores.h index 45486874b..5faa6e97e 100644 --- a/src/include/semaphores.h +++ b/src/include/semaphores.h @@ -32,9 +32,9 @@ */
typedef struct {
/** Queue of the threads sleeping on this Semaphore.*/
- ThreadsQueue s_queue;
+ ThreadsQueue s_queue;
/** The Semaphore counter.*/
- cnt_t s_cnt;
+ cnt_t s_cnt;
} Semaphore;
#ifdef __cplusplus
@@ -62,18 +62,18 @@ extern "C" { * Decreases the semaphore counter, this macro can be used when it is ensured
* that the counter would not become negative.
*/
-#define chSemFastWaitS(sp) ((sp)->s_cnt--)
+#define chSemFastWaitS(sp) ((sp)->s_cnt--)
/**
* Increases the semaphore counter, this macro can be used when the counter is
* not negative.
*/
-#define chSemFastSignalI(sp) ((sp)->s_cnt++)
+#define chSemFastSignalI(sp) ((sp)->s_cnt++)
/**
* Returns the semaphore counter current value.
*/
-#define chSemGetCounter(sp) ((sp)->s_cnt)
+#define chSemGetCounter(sp) ((sp)->s_cnt)
#endif /* CH_USE_SEMAPHORES */
|