Add a CRYPTO_atomic_read call which allows an int variable to be read
[oweals/openssl.git] / include / openssl / crypto.h
index 9fc0663233556fbd7d706dc54d2b10cf0a475a86..a9f080d53ccc420686ccff66d19dab32cfc19219 100644 (file)
@@ -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