[#BloombergLP-bsls-SpinLockGuard-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/SpinLockGuard.adoc[SpinLockGuard]::SpinLockGuard
:relfileprefix: ../../../
:mrdocs:

Create a proctor object that manages the specified `lock`&period; Invoke `lock&hyphen;&gt;lock()`&period;

== Synopsis

Declared in `&lt;bsls&lowbar;spinlock&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
SpinLockGuard(xref:BloombergLP/bsls/SpinLock.adoc[SpinLock]* lock);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lock*
| spin lock to manage and acquire
|===


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