mirror of
https://github.com/boostorg/thread.git
synced 2026-01-27 19:32:11 +00:00
Added missing relative time constructor to unique_lock
[SVN r48213]
This commit is contained in:
@@ -234,6 +234,12 @@ namespace boost
|
||||
{
|
||||
try_lock();
|
||||
}
|
||||
template<typename TimeDuration>
|
||||
unique_lock(Mutex& m_,TimeDuration const& target_time):
|
||||
m(&m_),is_locked(false)
|
||||
{
|
||||
timed_lock(target_time);
|
||||
}
|
||||
unique_lock(Mutex& m_,system_time const& target_time):
|
||||
m(&m_),is_locked(false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user