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

Name

Description

/* implementation-defined */

Member Functions

Name

Description

operator=

Assignment operators

mutex

owns_lock

release

swap

try_lock

unlock

operator bool

Conversion to bool

Using Declarations

Protected Data Members

Deduction Guides

Name

Description

UpgradeLock<Mutex>

Deduces the mutex type of an UpgradeLock from its constructor arguments.

Non-Member Functions

Name

Description

co_transition_lock

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

Created with MrDocs