Eventually and atomically upgrades an upgrade lock to an exclusive lock.

Synopsis

Declared in <folly/synchronization/Lock.h>

template<typename Mutex>
unique_lock<Mutex>
transition_to_unique_lock(upgrade_lock<Mutex>& lock);

Return Value

An exclusive lock holder for the same mutex.

Parameters

Name

Description

lock

The upgrade lock holder to transition from.

Created with MrDocs