2
0
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:
Anthony Williams
2008-08-19 10:26:53 +00:00
parent dcebae6d4a
commit b4e9be3c52
2 changed files with 86 additions and 60 deletions

View File

@@ -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)
{