Run init exactly once across threads using a CRYPTO_ONCE control.
Declared in <openssl/crypto.h>
int
CRYPTO_THREAD_run_once(
CRYPTO_ONCE* once,
void(* init)());
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| once | Once-control variable (initialize with CRYPTO_ONCE_STATIC_INIT). |
| init | Function invoked at most once process-wide for once. |