From c81847ef197844a64803dd85e09c9e75f1e40277 Mon Sep 17 00:00:00 2001 From: c vw Date: Wed, 17 Jul 2019 16:40:58 +0200 Subject: [PATCH] small change --- README.MacOS | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/README.MacOS b/README.MacOS index b475c45..b2a88d2 100644 --- a/README.MacOS +++ b/README.MacOS @@ -17,20 +17,13 @@ To make piHPSDR work on MacOS, I had to do two major things: a) Semaphores: MacOS does not have sem_t variables, only sem_t pointers that must not be dereferences. Therefore it has no working sem_init. - On MacOS one must use sem_open instead and use sem_t + On MacOS one must use sem_unlink+sem_open instead and use sem_t pointers instead of sem_t variable throughout. This is not recommended for LINUX, since named semaphores stay - alive even when the program terminates (on MacOS, all - semaphores are automatically destroyed). Therefore + alive even when the program terminates (hence the sem_unlink + before each sem_open) Therefore *every* declaration of sem_t variable and *every* - call to semaphore functions had to be modified. Everything - is coded as - -#ifdef __APPLE__ - use sem_t pointers -#else - usem_t variables -#endif + call to semaphore functions had to be modified. NOTE this change also applies to WDSP. -- 2.45.2