|
NAMECRYPTO_THREADID_current ,
CRYPTO_THREADID_cmp ,
CRYPTO_THREADID_cpy ,
CRYPTO_THREADID_hash ,
CRYPTO_lock , CRYPTO_w_lock ,
CRYPTO_w_unlock ,
CRYPTO_r_lock ,
CRYPTO_r_unlock , CRYPTO_add
—
thread support
SYNOPSIS#include <openssl/crypto.h>
void
int
void
unsigned long
void
int
#define CRYPTO_w_lock(type) \ CRYPTO_lock(CRYPTO_LOCK|CRYPTO_WRITE, type, __FILE__, __LINE__) #define CRYPTO_w_unlock(type) \ CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_WRITE, type, __FILE__, __LINE__) #define CRYPTO_r_lock(type) \ CRYPTO_lock(CRYPTO_LOCK|CRYPTO_READ, type, __FILE__, __LINE__) #define CRYPTO_r_unlock(type) \ CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_READ, type, __FILE__, __LINE__) DESCRIPTIONThese functions are obsolete.
mode is a bitfield describing what should be
done with the lock. For each call, either
type is a number in the range 0 <=
type <
The file and line arguments are ignored. In the LibreSSL implementation,
RETURN VALUESCRYPTO_THREADID_cmp () returns 0 if
a and b refer to the same thread
or a non-zero value otherwise.
SEE ALSOcrypto(3)HISTORYCRYPTO_lock (), CRYPTO_w_lock (),
CRYPTO_w_unlock (),
CRYPTO_r_lock (), and
CRYPTO_r_unlock () first appeared in SSLeay 0.6.0.
CRYPTO_add () first appeared in SSLeay 0.6.2. These
functions have been available since OpenBSD 2.4.
Visit the GSP FreeBSD Man Page Interface. |