Skip to Main Content
C++ Concurrency in Action, Second Edition
book

C++ Concurrency in Action, Second Edition

by Anthony Williams
February 2019
Intermediate to advanced content levelIntermediate to advanced
592 pages
20h 37m
English
Manning Publications
Content preview from C++ Concurrency in Action, Second Edition
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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ Concurrency in Action

C++ Concurrency in Action

Anthony Williams
Programming Rust, 2nd Edition

Programming Rust, 2nd Edition

Jim Blandy, Jason Orendorff, Leonora F. S. Tindall

Publisher Resources

ISBN: 9781617294693Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link