Diffusion nPth 8f486d084a0e

Use unnamed semaphore of Grand Central Dispatch for macOS.

Authored by gniibe on Nov 29 2016, 3:21 AM.

Description

Use unnamed semaphore of Grand Central Dispatch for macOS.

* configure.ac [*-apple-darwin*]: Search dispatch_semaphore_create
and define HAVE_LIB_DISPATCH if found.
* src/npth.c [HAVE_LIB_DISPATCH] (sem_init, sem_post, sem_wait): New.
* src/npth.c (try_sem_open): Remove.
* tests/t-fork.c: Add comments.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Committed
gniibeNov 29 2016, 3:28 AM
Parents
rPTH8071e2d8df33: Post release updates
Branches
Unknown
Tags
Unknown
Tasks
T3099: nPth is ready for new release of 1.4