diff options
author | David Robillard <d@drobilla.net> | 2012-02-09 23:02:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-09 23:02:09 +0000 |
commit | df1879cabfd141511b458b98b16a7150e1406e7d (patch) | |
tree | 5002b8421ab906954a1afdaeb352c4ddc5f803fe /zix | |
parent | d649f6712e6d103da9be58dab66a5cee28361d46 (diff) | |
download | zix-df1879cabfd141511b458b98b16a7150e1406e7d.tar.gz zix-df1879cabfd141511b458b98b16a7150e1406e7d.tar.bz2 zix-df1879cabfd141511b458b98b16a7150e1406e7d.zip |
Fix semaphore initialisation on POSIX.
git-svn-id: http://svn.drobilla.net/zix/trunk@66 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'zix')
-rw-r--r-- | zix/sem.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -91,6 +91,10 @@ zix_sem_wait(ZixSem* sem); static inline bool zix_sem_try_wait(ZixSem* sem); +/** + @cond +*/ + #ifdef __APPLE__ struct ZixSemImpl { @@ -176,7 +180,7 @@ static inline ZixStatus zix_sem_init(ZixSem* sem, unsigned initial) { return sem_init(&sem->sem, 0, initial) - ? ZIX_STATUS_SUCCESS : ZIX_STATUS_ERROR; + ? ZIX_STATUS_ERROR : ZIX_STATUS_SUCCESS; } static inline void @@ -210,6 +214,7 @@ zix_sem_try_wait(ZixSem* sem) #endif /** + @endcond @} @} */ |