Atomically load an int value, optionally under lock.
Declared in <openssl/crypto.h>
int
CRYPTO_atomic_load_int(
int* val,
int* ret,
CRYPTO_RWLOCK* lock);
1 on success, or 0 on failure.
| 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. |