[#BloombergLP-bslmt-TestUtil_Guard-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/TestUtil_Guard.adoc[TestUtil&lowbar;Guard]::TestUtil&lowbar;Guard
:relfileprefix: ../../../
:mrdocs:

Create a guard that locks the mutex in the singleton and saves the address of the singleton mutex&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
TestUtil&lowbar;Guard();
----


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