[#BloombergLP-bdlcc-SkipList_DoubleLockGuard]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::SkipList&lowbar;DoubleLockGuard
:relfileprefix: ../../
:mrdocs:

RAII guard that locks two mutexes in address order to avoid deadlock&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;skiplist&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class SkipList&lowbar;DoubleLockGuard;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlcc/SkipList_DoubleLockGuard/2constructor.adoc[`SkipList&lowbar;DoubleLockGuard`]         [.small]#[constructor]#
| Lock both `lock1` and `lock2` in address order&period;
|===



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