voron

experimental ARM OS
git clone git://git.2f30.org/voron
Log | Files | Refs | README | LICENSE

commit 763976b3b92514daff5c99d489d79cdf04df778f
parent dfc4ad349414b5c840eb245f66b09a436887ef97
Author: oblique <psyberbits@gmail.com>
Date:   Tue,  9 Apr 2013 09:20:13 +0300

semaphore.h: move mutex_t within the file.

Diffstat:
Minclude/semaphore.h | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/semaphore.h b/include/semaphore.h @@ -11,10 +11,6 @@ typedef struct { spinlock_t lock; } semaphore_t; -typedef struct { - semaphore_t sem; -} mutex_t; - #define SEMAPHORE_INIT(v) { (v), SPINLOCK_INIT } static inline void @@ -71,6 +67,10 @@ semaphore_done(semaphore_t *sem) /* mutex is a binary semaphore */ +typedef struct { + semaphore_t sem; +} mutex_t; + #define MUTEX_INIT { SEMAPHORE_INIT(1) } #define MUTEX_INIT_LOCKED { SEMAPHORE_INIT(0) }