CRYPTO_atomic_add(): use acquire release memory order rather than relaxed
authorRichard Levitte <levitte@openssl.org>
Wed, 24 Aug 2016 10:01:39 +0000 (12:01 +0200)
committerMatt Caswell <matt@openssl.org>
Wed, 24 Aug 2016 13:37:40 +0000 (14:37 +0100)
commit11fc6c761165283f5aed9aed5edd65c1bb963e79
treee90ca43f2990f3e9110127e0db2050664fda1135
parentcb4b54c23b95e4638d643eb349d8d8dfa1cc2fd3
CRYPTO_atomic_add(): use acquire release memory order rather than relaxed

For increments, the relaxed model is fine.  For decrements, it's
recommended to use the acquire release model.  We therefore go for the
latter.

Reviewed-by: Andy Polyakov <appro@openssl.org>
crypto/threads_pthread.c