[#BloombergLP-bslmt-ReaderWriterLock-lockRead]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ReaderWriterLock.adoc[ReaderWriterLock]::lockRead
:relfileprefix: ../../../
:mrdocs:

Lock this reader&sol;writer lock for read&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;readerwriterlock&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
lockRead();
----

== Description

Lock this reader&sol;writer lock for read&period; If there are no pending or active write locks, the call will return immediately, otherwise it block until all write locks have been released&period; Use `unlock` to release the lock&period;


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