commit 7f14f953b415997d7cacc5665c2b26e997235b8f parent 2a886ffd003d4757974d0bf86eb095bf0e92d26a Author: Michael Savage <mikejsavage@gmail.com> Date: Wed Dec 28 22:36:49 +0200 Const madness Diffstat:
darwin_semaphore.h | | | 6 | +++--- |
diff --git a/darwin_semaphore.h b/darwin_semaphore.h @@ -7,15 +7,15 @@ struct Semaphore { dispatch_semaphore_t sem; }; -inline void semaphore_init( Semaphore * const sem ) { +inline void semaphore_init( Semaphore * sem ) { sem->sem = dispatch_semaphore_create( 0 ); } -inline void semaphore_signal( Semaphore * const sem ) { +inline void semaphore_signal( Semaphore * sem ) { dispatch_semaphore_signal( sem->sem ); } -inline void semaphore_wait( Semaphore * const sem ) { +inline void semaphore_wait( Semaphore * sem ) { dispatch_semaphore_wait( sem->sem, DISPATCH_TIME_FOREVER ); }