|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r79753 - trunk/boost/thread/win32
From: andrey.semashev_at_[hidden]
Date: 2012-07-26 04:08:11
Author: andysem
Date: 2012-07-26 04:08:06 EDT (Thu, 26 Jul 2012)
New Revision: 79753
URL: http://svn.boost.org/trac/boost/changeset/79753
Log:
Fixed compilation when Boost.Chrono is disabled by user.
Text files modified:
trunk/boost/thread/win32/basic_timed_mutex.hpp | 2 ++
trunk/boost/thread/win32/shared_mutex.hpp | 5 ++++-
2 files changed, 6 insertions(+), 1 deletions(-)
Modified: trunk/boost/thread/win32/basic_timed_mutex.hpp
==============================================================================
--- trunk/boost/thread/win32/basic_timed_mutex.hpp (original)
+++ trunk/boost/thread/win32/basic_timed_mutex.hpp 2012-07-26 04:08:06 EDT (Thu, 26 Jul 2012)
@@ -159,6 +159,7 @@
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 @@
}
return true;
}
+#endif
void unlock()
{
Modified: trunk/boost/thread/win32/shared_mutex.hpp
==============================================================================
--- trunk/boost/thread/win32/shared_mutex.hpp (original)
+++ trunk/boost/thread/win32/shared_mutex.hpp 2012-07-26 04:08:06 EDT (Thu, 26 Jul 2012)
@@ -221,6 +221,7 @@
}
}
+#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 @@
BOOST_ASSERT(res==0);
}
}
+#endif
void unlock_shared()
{
@@ -490,7 +492,7 @@
}
}
-
+#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 @@
BOOST_ASSERT(wait_res<2);
}
}
+#endif
void unlock()
{
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk