An upgradable lock guard held over a coroutine-aware mutex.
Declared in <folly/coro/SharedLock.h>
template<typename Mutex>
class UpgradeLock
: public /* implementation-defined */
| Name | Description |
|---|---|
/* implementation-defined */ |
| Name | Description |
|---|---|
operator= | Assignment operators |
mutex | |
owns_lock | |
release | |
swap | |
try_lock | |
unlock | |
operator bool | Conversion to bool |
| Name |
|---|
Unnamed using |
| Name |
|---|
locked_ |
mutex_ |
| Name | Description |
|---|---|
UpgradeLock<Mutex> | Deduces the mutex type of an UpgradeLock from its constructor arguments. |
| Name | Description |
|---|---|
co_transition_lock | Async version of the folly::transition_lock TODO: add more transition policies beyond just from upgrade to exclusive |