#include <mutex.hh>
Basic operations | |
Lock (Mutex &) | |
~Lock () | |
Public Member Functions | |
void | acquire_then_release_old (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.