Home GnuPG
Diffusion nPth 50d6d727c8da

Bypass npth_unprotect/protect when npth has not yet been initialized.
50d6d727c8daUnpublished

Unpublished Commit · Learn More

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

Description

Bypass npth_unprotect/protect when npth has not yet been initialized.

* src/npth.c (initialized_or_any_threads): New variable.
(npth_init): Set var.
(npth_create): Set var.
(npth_unprotect, npth_protect): Shortcut if not initialized.
* w32/npth.c (initialized_or_any_threads): New variable.
(npth_init): Set var.
(npth_unprotect, npth_protect): Shortcut if not initialized.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Nov 21 2016, 9:35 AM
Parents
rPTH8cddd2ce70f8: src: Fix setting thread names on macOS.
Branches
Unknown
Tags
Unknown