unique_lock template <class Mutex> class unique_lock; Unique lock A unique lock is an object that manages a mutex object with unique ownership in both states: locked and unlocked. On construction (or by move-assigning to it), the object acquires a m…