[#BloombergLP-bslmt-LockReadGuard-2constructor-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/LockReadGuard.adoc[LockReadGuard]::LockReadGuard
:relfileprefix: ../../../
:mrdocs:

Create a guard that acquires a read lock on `lock`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
LockReadGuard(T* lock);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lock*
| lock object to acquire for reading&semi; may be null
|===


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