folly::ScopedUnlocker::ScopedUnlocker

Constructors

Synopses

Declared in <folly/Synchronized.h>

Copy construction is disabled.

ScopedUnlocker(ScopedUnlocker const& other) = delete;
» more...

Move-construct, taking over the unlock state from other.

ScopedUnlocker(ScopedUnlocker&& other) noexcept;
» more...

Unlock p and remember it so it can be re-locked later.

explicit
ScopedUnlocker(LockedPtr<SynchronizedType, LockPolicy>* p) noexcept;
» more...

Parameters

NameDescription
otherThe unlocker that would be copied from.
pThe locked pointer to temporarily unlock.