Opened 14 years ago
Closed 13 years ago
#2664 closed Feature Requests (duplicate)
Add unique_lock constructor taking a Duration
Reported by: | viboes | Owned by: | Anthony Williams |
---|---|---|---|
Milestone: | Boost 1.38.0 | Component: | thread |
Version: | Boost 1.37.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Add unique_lock constructor taking a Duration to conform with the current C++0x proposal
template <class DurationType> unique_lock(mutex_type& m, const DurationType& rel_time); Precondition: If mutex_type is not a recursive mutex the calling thread does not own the mutex. Effects: Constructs an object of type unique_lock and calls m.timed_lock(rel_time). Postconditions: pm == &m and owns == res, where res is the value returned by the call to m.timed_lock(rel_time). Throws: Nothing.
Note:
See TracTickets
for help on using tickets.
Duplicate of #2636