Replace ath based mutexes by gpgrt based locks.
authorWerner Koch <wk@gnupg.org>
Thu, 9 Jan 2014 18:14:09 +0000 (19:14 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 16 Jan 2014 16:23:21 +0000 (17:23 +0100)
commitcfc151ba637200e4fc05d9481a8df2071b2f9a47
treef1a1c3e1fc81663d622dd5189462a249bd01eac3
parent49edeebb43174865cf4fa2c170a42a8e4274c4f0
Replace ath based mutexes by gpgrt based locks.

* configure.ac (NEED_GPG_ERROR_VERSION): Require 1.13.
(gl_LOCK): Remove.
* src/ath.c, src/ath.h: Remove.  Remove from all files.  Replace all
mutexes by gpgrt based statically initialized locks.
* src/global.c (global_init): Remove ath_init.
(_gcry_vcontrol): Make ath install a dummy function.
(print_config): Remove threads info line.

* doc/gcrypt.texi: Simplify the multi-thread related documentation.
--

The current code does only work on ELF systems with weak symbol
support.  In particular no locks were used under Windows.  With the
new gpgrt_lock functions from the soon to be released libgpg-error
1.13 we have a better portable scheme which also allows for static
initialized mutexes.

Signed-off-by: Werner Koch <wk@gnupg.org>
26 files changed:
cipher/cipher-aeswrap.c
cipher/cipher-cbc.c
cipher/cipher-ccm.c
cipher/cipher-cfb.c
cipher/cipher-ctr.c
cipher/cipher-gcm.c
cipher/cipher-ofb.c
cipher/cipher.c
cipher/kdf.c
cipher/md.c
cipher/primegen.c
cipher/pubkey.c
compat/compat.c
configure.ac
doc/gcrypt.texi
random/random-csprng.c
random/random-daemon.c
random/random-fips.c
random/random-system.c
random/random.c
src/Makefile.am
src/ath.c [deleted file]
src/ath.h [deleted file]
src/fips.c
src/global.c
src/secmem.c