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

Lock both `lock1` and `lock2` in address order&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
SkipList&lowbar;DoubleLockGuard(
    xref:BloombergLP/bslmt/Mutex.adoc[bslmt::Mutex]* lock1,
    xref:BloombergLP/bslmt/Mutex.adoc[bslmt::Mutex]* lock2);
----

== Description

Lock both `lock1` and `lock2`, the one in the lower memory location first&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lock1*
| first mutex to lock
| *lock2*
| second mutex to lock
|===


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