[#CRYPTO_atomic_load_int] = CRYPTO_atomic_load_int :mrdocs: Atomically load an int value, optionally under `lock.` == Synopsis Declared in `<openssl/crypto.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CRYPTO_atomic_load_int( int* val, int* ret, xref:CRYPTO_RWLOCK.adoc[CRYPTO_RWLOCK]* lock); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *val* | Address of the integer to read. | *ret* | Receives a snapshot of *`val;` must not be NULL. | *lock* | Optional CRYPTO_RWLOCK used when hardware atomics are unavailable, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#