Hi,

after investigating the link below that was kindly provided by Jay, it seems like
sem_init() is not only deprecated on Darwin, but entirely broken.

I have changed the implementation in SVN 1144 to use named semaphores on
all systems that raise a warning when sem_init() is being used (supposedly including
Darwin but maybe other Apples as well).

In order to to properly detect if sem_init() works on your system, the warning
-Wdeprecated MUST NOT BE DISABLED (e.g. by means of -Wno
deprecated
or similar).

For this change, ./configure is needed after updating from SVN.

GNU/Linux systems are not affected by this problem.

Best Regards,
/// Jürgen


On 4/29/19 11:36 AM, Dr. Jürgen Sauermann wrote:
Hi Jay,

thanks a lot. I will look into using sem_open() instead of sem_init().

/// Jürgen


On 4/29/19 10:15 AM, Jay Foad wrote:
According to stackoverflow, Darwin doesn't support unnamed semaphores, so sem_init is deprecated and always returns failure, and you should use named semaphores (sem_open) instead.


Jay.


Reply via email to