|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83993 - branches/release/boost/thread/pthread
From: vicente.botet_at_[hidden]
Date: 2013-04-21 03:30:58
Author: viboes
Date: 2013-04-21 03:30:55 EDT (Sun, 21 Apr 2013)
New Revision: 83993
URL: http://svn.boost.org/trac/boost/changeset/83993
Log:
Thread: fix #8443.
Text files modified:
branches/release/boost/thread/pthread/mutex.hpp | 4 +++-
branches/release/boost/thread/pthread/recursive_mutex.hpp | 5 ++++-
2 files changed, 7 insertions(+), 2 deletions(-)
Modified: branches/release/boost/thread/pthread/mutex.hpp
==============================================================================
--- branches/release/boost/thread/pthread/mutex.hpp (original)
+++ branches/release/boost/thread/pthread/mutex.hpp 2013-04-21 03:30:55 EDT (Sun, 21 Apr 2013)
@@ -26,10 +26,12 @@
#include <boost/thread/detail/delete.hpp>
#ifdef _POSIX_TIMEOUTS
-#if _POSIX_TIMEOUTS >= 0 && _POSIX_C_SOURCE>=200112L
+#if _POSIX_TIMEOUTS >= 0 && _POSIX_TIMEOUTS>=200112L
+#ifndef BOOST_PTHREAD_HAS_TIMEDLOCK
#define BOOST_PTHREAD_HAS_TIMEDLOCK
#endif
#endif
+#endif
#include <boost/config/abi_prefix.hpp>
Modified: branches/release/boost/thread/pthread/recursive_mutex.hpp
==============================================================================
--- branches/release/boost/thread/pthread/recursive_mutex.hpp (original)
+++ branches/release/boost/thread/pthread/recursive_mutex.hpp 2013-04-21 03:30:55 EDT (Sun, 21 Apr 2013)
@@ -28,10 +28,13 @@
#include <boost/thread/detail/delete.hpp>
#ifdef _POSIX_TIMEOUTS
-#if _POSIX_TIMEOUTS >= 0
+#if _POSIX_TIMEOUTS >= 0 && _POSIX_TIMEOUTS>=200112L
+#ifndef BOOST_PTHREAD_HAS_TIMEDLOCK
#define BOOST_PTHREAD_HAS_TIMEDLOCK
#endif
#endif
+#endif
+
#if defined(BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE) && defined(BOOST_PTHREAD_HAS_TIMEDLOCK)
#define BOOST_USE_PTHREAD_RECURSIVE_TIMEDLOCK
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