aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-11-04 18:22:51 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-11-04 18:22:51 +0000
commita3811e1c18ba379df6b00512ba0792182df0176b (patch)
tree4a76515f84fe7a0349d067a15b55720dd778e5b6 /src
parenteb6426acaa7f18c4639eda5de529818e91df7c7e (diff)
downloadChibiOS-a3811e1c18ba379df6b00512ba0792182df0176b.tar.gz
ChibiOS-a3811e1c18ba379df6b00512ba0792182df0176b.tar.bz2
ChibiOS-a3811e1c18ba379df6b00512ba0792182df0176b.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@497 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src')
-rw-r--r--src/include/mutexes.h9
-rw-r--r--src/include/semaphores.h1
2 files changed, 5 insertions, 5 deletions
diff --git a/src/include/mutexes.h b/src/include/mutexes.h
index 31797562b..9693ce312 100644
--- a/src/include/mutexes.h
+++ b/src/include/mutexes.h
@@ -27,19 +27,18 @@
#ifdef CH_USE_MUTEXES
-typedef struct Mutex Mutex;
-
/**
* Mutex structure.
+ * @extends ThreadsQueue
*/
-struct Mutex {
+typedef struct Mutex {
/** Queue of the threads sleeping on this Mutex.*/
ThreadsQueue m_queue;
/** Owner \p Thread pointer or \p NULL.*/
Thread *m_owner;
/** Next \p Mutex into an owner-list, \p NULL if none.*/
- Mutex *m_next;
-};
+ struct Mutex *m_next;
+} Mutex;
#ifdef __cplusplus
extern "C" {
diff --git a/src/include/semaphores.h b/src/include/semaphores.h
index 45486874b..787258089 100644
--- a/src/include/semaphores.h
+++ b/src/include/semaphores.h
@@ -29,6 +29,7 @@
/**
* Semaphore structure.
+ * @extends ThreadsQueue
*/
typedef struct {
/** Queue of the threads sleeping on this Semaphore.*/