aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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.*/