aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/semaphores.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-12-07 12:01:57 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-12-07 12:01:57 +0000
commite06b155baa31443e76650d4c6aaca960af9f0051 (patch)
treefd9377989a30293eb1ac0ff0f34a6fcf4d64f9b0 /src/include/semaphores.h
parentdae3de6609b9251dbaaa280c1ce886a350c3c0c5 (diff)
downloadChibiOS-e06b155baa31443e76650d4c6aaca960af9f0051.tar.gz
ChibiOS-e06b155baa31443e76650d4c6aaca960af9f0051.tar.bz2
ChibiOS-e06b155baa31443e76650d4c6aaca960af9f0051.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@537 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/semaphores.h')
-rw-r--r--src/include/semaphores.h10
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 */