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

Create a `SpinLock` object in the unlocked state&period; Note that this is provided to allow for a syntax that was necessary in C&plus;&plus;03, but is no longer necessary&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
SpinLock(xref:BloombergLP/bsls/SpinLock_MemberInitializer.adoc[SpinLock&lowbar;MemberInitializer] const& initializer);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *initializer*
| unused tag selecting this constructor
|===


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