diff options
author | Pauli <paul.dale@oracle.com> | 2017-09-25 12:04:42 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2017-10-10 08:45:52 +1000 |
commit | 94683b7acb62a5d99b8b4d66283e6d6dd0007f7a (patch) | |
tree | 10cec2abdb2f43af401d65c1060c083bb0865fdf /include | |
parent | 338ead0ff9b22aecbc3b28e37ea05d142e13ee13 (diff) |
Add a CRYPTO_atomic_read call which allows an int variable to be read
in an atomic fashion.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4414)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h index 9fc0663233..a9f080d53c 100644 --- a/include/openssl/crypto.h +++ b/include/openssl/crypto.h @@ -74,6 +74,7 @@ int CRYPTO_THREAD_unlock(CRYPTO_RWLOCK *lock); void CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock); int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock); +int CRYPTO_atomic_read(int *val, int *ret, CRYPTO_RWLOCK *lock); /* * The following can be used to detect memory leaks in the library. If |