[#CRYPTO_THREAD_lock_new]
= CRYPTO&lowbar;THREAD&lowbar;lock&lowbar;new
:mrdocs:

Allocate a new read&sol;write lock for CRYPTO&lowbar;THREAD&lowbar;&ast; locking helpers&period;

== Synopsis

Declared in `&lt;openssl&sol;crypto&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CRYPTO_RWLOCK.adoc[CRYPTO&lowbar;RWLOCK]*
CRYPTO&lowbar;THREAD&lowbar;lock&lowbar;new();
----

== Return Value

New CRYPTO&lowbar;RWLOCK, or NULL on allocation failure&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
