Add tsan_decr() API, counterpart of tsan_counter()
authorBenjamin Kaduk <bkaduk@akamai.com>
Mon, 22 Oct 2018 16:51:35 +0000 (11:51 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Sun, 4 Nov 2018 04:27:11 +0000 (23:27 -0500)
commita649b52f86a2aa039a15d9c8c0de5b6786bac0fc
treec6b5f63d37b806470560aa941bbb1da9a1b2a44b
parentcd01707b7f7e71b6c5df013212c9b3613e9eab7c
Add tsan_decr() API, counterpart of tsan_counter()

The existing tsan_counter() API increments a reference counter.
Provide a new API, tsan_decr(), to decrement such a reference counter.
This can be used, for example, when a reference is added to the session_ctx's
sess_accept stats but should more properly be tracked in the regular ctx's
statistics.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7464)

(cherry picked from commit 95658c32436017aeeef3d8598957071baf6769a9)
include/internal/tsan_assist.h