summaryrefslogtreecommitdiffstats
path: root/crypto/bio
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2017-08-29 15:24:17 -0400
committerRich Salz <rsalz@openssl.org>2017-08-31 19:42:03 -0400
commited6b2c7938ec6f07b15745d4183afc276e74c6dd (patch)
treeae11f0bb2f38642aceb8174e7b64e2815316250b /crypto/bio
parent3907872f7234744b478499f42a8d151ca89be64d (diff)
Add CRYPTO_thread_glock_new
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/4294)
Diffstat (limited to 'crypto/bio')
-rw-r--r--crypto/bio/b_addr.c2
-rw-r--r--crypto/bio/bio_meth.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bio/b_addr.c b/crypto/bio/b_addr.c
index ba26c9144a..47e4fc20fb 100644
--- a/crypto/bio/b_addr.c
+++ b/crypto/bio/b_addr.c
@@ -603,7 +603,7 @@ static int addrinfo_wrap(int family, int socktype,
DEFINE_RUN_ONCE_STATIC(do_bio_lookup_init)
{
OPENSSL_init_crypto(0, NULL);
- bio_lookup_lock = CRYPTO_THREAD_lock_new();
+ bio_lookup_lock = CRYPTO_THREAD_glock_new("bio_lookup");
return bio_lookup_lock != NULL;
}
diff --git a/crypto/bio/bio_meth.c b/crypto/bio/bio_meth.c
index be6420c028..99e81c7cad 100644
--- a/crypto/bio/bio_meth.c
+++ b/crypto/bio/bio_meth.c
@@ -15,7 +15,7 @@ static CRYPTO_ONCE bio_type_init = CRYPTO_ONCE_STATIC_INIT;
DEFINE_RUN_ONCE_STATIC(do_bio_type_init)
{
- bio_type_lock = CRYPTO_THREAD_lock_new();
+ bio_type_lock = CRYPTO_THREAD_glock_new("bio_type");
return bio_type_lock != NULL;
}