folly::coro::UpgradeLock

An upgradable lock guard held over a coroutine-aware mutex.

Synopsis

Declared in <folly/coro/SharedLock.h>

template<typename Mutex>
class UpgradeLock
    : public /* implementation-defined */

Base Classes

NameDescription
/* implementation-defined */

Member Functions

NameDescription
operator= Assignment operators
mutex
owns_lock
release
swap
try_lock
unlock
operator bool Conversion to bool

Using Declarations

Name
Unnamed using

Protected Data Members

Name
locked_
mutex_

Deduction Guides

NameDescription
UpgradeLock<Mutex> Deduces the mutex type of an UpgradeLock from its constructor arguments.

Non-Member Functions

NameDescription
co_transition_lockAsync version of the folly::transition_lock TODO: add more transition policies beyond just from upgrade to exclusive