internal/refcount.h: overhaul fencing and add _MSC_VER section.
authorAndy Polyakov <appro@openssl.org>
Wed, 8 Aug 2018 09:10:11 +0000 (11:10 +0200)
committerAndy Polyakov <appro@openssl.org>
Thu, 16 Aug 2018 07:31:35 +0000 (09:31 +0200)
commit96d7852cbd0c7861cce155e1dc8c621648c0ba70
tree6db42884677f8fcf282b681eeea94adc490c56d1
parent86ed2e1cb04158371385047e0e7832c34273022c
internal/refcount.h: overhaul fencing and add _MSC_VER section.

Relax memory_order on counter decrement itself, because mutable
members of the reference-counted structure should be visible on all
processors independently on counter. [Even re-format and minimize
dependency on other headers.]

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/6900)
include/internal/refcount.h