crypto/threads_*: remove CRYPTO_atomic_{read|write}.
authorAndy Polyakov <appro@openssl.org>
Mon, 13 Aug 2018 20:53:14 +0000 (22:53 +0200)
committerAndy Polyakov <appro@openssl.org>
Fri, 17 Aug 2018 10:40:39 +0000 (12:40 +0200)
commitd2b863643d94704abd9840519cfc54d22d0481fe
tree1de96a34e4be5136cb43333291483cd25a7ecaa2
parent2805ee1e095a78f596dc7adf778441e2edb9f15c
crypto/threads_*: remove CRYPTO_atomic_{read|write}.

CRYPTO_atomic_read was added with intention to read statistics counters,
but readings are effectively indistinguishable from regular load (even
in non-lock-free case). This is because you can get out-dated value in
both cases. CRYPTO_atomic_write was added for symmetry and was never used.

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/6883)
crypto/threads_none.c
crypto/threads_pthread.c
crypto/threads_win.c
doc/man3/CRYPTO_THREAD_run_once.pod
include/openssl/crypto.h
util/libcrypto.num