Atomically transitions from the from-lock to the to-lock, waiting unboundedly for the transition to become available.
Declared in <folly/synchronization/Lock.h>
template<
template<typename> typename ToLock,
typename Mutex,
template<typename> typename FromLock>
ToLock<Mutex>
transition_lock(FromLock<Mutex>& lock);
A lock holder of the target lock type.
| Name | Description |
|---|---|
| lock | The lock holder to transition from. |