From e06b155baa31443e76650d4c6aaca960af9f0051 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 7 Dec 2008 12:01:57 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@537 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/semaphores.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/include/semaphores.h') 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 */ -- cgit v1.2.3