std::shared_lock<folly::SharedMutexImpl<ReaderPriority, Tag_, Atom, Policy>>::swap

Swaps the managed mutex and token with another lock.

Synopsis

Declared in <folly/SharedMutex.h>

void
swap(shared_lock& other) noexcept;

Parameters

NameDescription
otherLock to swap state with.