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:12:45 +0000 (23:12 -0500)
commit95658c32436017aeeef3d8598957071baf6769a9
tree439893dde7a0a89acac930d3e6a8b279d04ea4c7
parent681e8cacdbdc44ac00af29b6656fc52745a9baa2
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)
include/internal/tsan_assist.h