std::unique_lock default constructor
Constructs an std::unique_lock instance with no associated mutex.
- Declaration
unique_lock() noexcept;
- Effects Constructs an std::unique_lock instance that has no associated mutex.
- Postconditions
this->mutex()==NULL, this->owns_lock()==false.
std::unique_lock locking constructor
Constructs an std::unique_lock instance that locks the supplied mutex.
- Declaration
explicit unique_lock(mutex_type& m);
- Effects Constructs an std::unique_lock instance that references the supplied mutex. Calls m.lock().
- Throws Any exceptions thrown by m.lock().
- Postconditions
this->owns_lock()==true, this->mutex()==&m.
std::unique_lock lock-adopting constructor
Constructs an std::unique_lock instance ...
Get C++ Concurrency in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.