Immediately and atomically downgrades an exclusive lock to an upgrade lock.
Declared in <folly/synchronization/Lock.h>
template<typename Mutex>
upgrade_lock<Mutex>
transition_to_upgrade_lock(unique_lock<Mutex>& lock);
An upgrade lock holder for the same mutex.
| Name | Description |
|---|---|
| lock | The exclusive lock holder to transition from. |