internal/refcount.h: allow non-atomic build
authorRichard Levitte <levitte@openssl.org>
Thu, 14 Mar 2019 08:59:00 +0000 (09:59 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 14 Mar 2019 15:25:24 +0000 (16:25 +0100)
commit503d4745a115b82db01c1fb22baaddb153d27cdb
tree26f4e90ad95bb26a85dd6afb58ba255027f3ce86
parent085bef9f7cee8506cc9d438d4fbc3663f46c5fe2
internal/refcount.h: allow non-atomic build

Configure with -DOPENSSL_DEV_NO_ATOMICS and you get refcount without
atomics.  This is intended for internal development only, to check the
refcounting is properly coded.  It should never become a configuration
option, hence the name of the macro.

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/8479)
include/internal/refcount.h