A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.github.io/LWG/issue2577 below:

Issue 2577: {shared,unique}_lock should use std::addressof

explicit unique_lock(mutex_type& m);

[…]

-5- Postconditions: pm == &m addressof(m) and owns == true.
unique_lock(mutex_type& m, defer_lock_t) noexcept;

[…]

-7- Postconditions: pm == &m addressof(m) and owns == false.
unique_lock(mutex_type& m, try_to_lock_t);

[…]

-10- Postconditions: pm == &m addressof(m) and owns == res, where res is the value returned by the call to m.try_lock().
unique_lock(mutex_type& m, adopt_lock_t);

[…]

-13- Postconditions: pm == &m addressof(m) and owns == true. -14- Throws: Nothing.
template <class Clock, class Duration>
  unique_lock(mutex_type& m, const chrono::time_point<Clock, Duration>& abs_time);

[…]

-17- Postconditions: pm == &m addressof(m) and owns == res, where res is the value returned by the call to m.try_lock_until(abs_time).
template <class Rep, class Period>
  unique_lock(mutex_type& m, const chrono::duration<Rep, Period>& rel_time);

[…]

-20- Postconditions: pm == &m addressof(m) and owns == res, where res is the value returned by the call to m.try_lock_for(rel_time).

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4