[#SYNCHRONIZED_DUAL] = SYNCHRONIZED_DUAL :mrdocs: NOTE: This API is deprecated. Use lock(), wlock(), rlock() or the withLock functions instead. In the future it will be marked with a deprecation attribute to emit build‐time warnings, and then it will be removed entirely. == Synopsis Declared in `<folly/Synchronized.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- #define SYNCHRONIZED_DUAL(n1, e1, n2, e2) ---- == Description Synchronizes two Synchronized objects (they may encapsulate different data). Synchronization is done in increasing address of object order, so there is no deadlock risk. == Parameters [cols="1,4"] |=== | Name| Description | *n1* | Name bound to the first object's datum. | *e1* | The first `Synchronized` object. | *n2* | Name bound to the second object's datum. | *e2* | The second `Synchronized` object. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#