Home GnuPG
Diffusion nPth 8f486d084a0e

Use unnamed semaphore of Grand Central Dispatch for macOS.
8f486d084a0eUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

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

Provenance
gniibeAuthored on Nov 29 2016, 3:21 AM
Parents
rPTH8071e2d8df33: Post release updates
Branches
Unknown
Tags
Unknown
Tasks
T3099: nPth is ready for new release of 1.4