2
0
mirror of https://github.com/boostorg/thread.git synced 2026-01-23 18:12:12 +00:00

Merged changes from trunk.

[SVN r79794]
This commit is contained in:
Andrey Semashev
2012-07-29 08:44:22 +00:00
parent c594f5d9ae
commit 6ef2dade3a
3 changed files with 8 additions and 2 deletions

View File

@@ -159,6 +159,7 @@ namespace boost
return timed_lock(system_time(timeout));
}
#ifdef BOOST_THREAD_USES_CHRONO
template <class Rep, class Period>
bool try_lock_for(const chrono::duration<Rep, Period>& rel_time)
{
@@ -209,6 +210,7 @@ namespace boost
}
return true;
}
#endif
void unlock()
{

View File

@@ -221,6 +221,7 @@ namespace boost
}
}
#ifdef BOOST_THREAD_USES_CHRONO
template <class Rep, class Period>
bool try_lock_shared_for(const chrono::duration<Rep, Period>& rel_time)
{
@@ -327,6 +328,7 @@ namespace boost
BOOST_ASSERT(res==0);
}
}
#endif
void unlock_shared()
{
@@ -490,7 +492,7 @@ namespace boost
}
}
#ifdef BOOST_THREAD_USES_CHRONO
template <class Rep, class Period>
bool try_lock_for(const chrono::duration<Rep, Period>& rel_time)
{
@@ -598,6 +600,7 @@ namespace boost
BOOST_ASSERT(wait_res<2);
}
}
#endif
void unlock()
{

View File

@@ -376,7 +376,8 @@ namespace boost
};
return ret;
#endif }
#endif
}
}
}