[#BloombergLP-bslmt-QLockGuard-setQLock]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/QLockGuard.adoc[QLockGuard]::setQLock
:relfileprefix: ../../../
:mrdocs:

Associate this guard with the specified `qlock`&period; The behavior is undefined if this object is already in a locked state&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setQLock(xref:BloombergLP/bslmt/QLock.adoc[QLock]* qlock);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *qlock*
| QLock with which to associate this guard
|===


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