git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@497 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
eb6426acaa
commit
a3811e1c18
|
@ -27,19 +27,18 @@
|
||||||
|
|
||||||
#ifdef CH_USE_MUTEXES
|
#ifdef CH_USE_MUTEXES
|
||||||
|
|
||||||
typedef struct Mutex Mutex;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mutex structure.
|
* Mutex structure.
|
||||||
|
* @extends ThreadsQueue
|
||||||
*/
|
*/
|
||||||
struct Mutex {
|
typedef struct Mutex {
|
||||||
/** Queue of the threads sleeping on this Mutex.*/
|
/** Queue of the threads sleeping on this Mutex.*/
|
||||||
ThreadsQueue m_queue;
|
ThreadsQueue m_queue;
|
||||||
/** Owner \p Thread pointer or \p NULL.*/
|
/** Owner \p Thread pointer or \p NULL.*/
|
||||||
Thread *m_owner;
|
Thread *m_owner;
|
||||||
/** Next \p Mutex into an owner-list, \p NULL if none.*/
|
/** Next \p Mutex into an owner-list, \p NULL if none.*/
|
||||||
Mutex *m_next;
|
struct Mutex *m_next;
|
||||||
};
|
} Mutex;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Semaphore structure.
|
* Semaphore structure.
|
||||||
|
* @extends ThreadsQueue
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/** Queue of the threads sleeping on this Semaphore.*/
|
/** Queue of the threads sleeping on this Semaphore.*/
|
||||||
|
|
Loading…
Reference in New Issue