Construct a std::unique_lock instance that does
not own the lock on the supplied mutex.
unique_lock(mutex_type& m,std::defer_lock_t);
- Effects:
Constructs a
std::unique_lockinstance that references the supplied mutex.- Throws:
Nothing.
- Postcondition:
this->owns_lock()==false,this->mutex()==&m.
Header
#include <mutex>