[#BloombergLP-bsls-SpinLock-lockWithoutBackoff]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/SpinLock.adoc[SpinLock]::lockWithoutBackoff
:relfileprefix: ../../../
:mrdocs:

Spin (repeat a loop continuously without using the system to pause or reschedule the thread) until this object is unlocked, then atomically acquire the lock&period; The spinning does not perform a backoff&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
lockWithoutBackoff();
----


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