paludis Version 1.4.2
|void||acquire_then_release_old (Mutex &)|
|Lock (Mutex &)|
A RAII lock for a Mutex.
If threading is disabled, locking is a no-op.
|void paludis::Lock::acquire_then_release_old||(||Mutex &||)|
Acquire a lock on the provided Mutex, and then release our previously owned lock.
Use with caution – this is a good way of creating deadlocks.