|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r57230 - sandbox/stm/branches/vbe/boost/stm
From: vicente.botet_at_[hidden]
Date: 2009-10-29 12:43:56
Author: viboes
Date: 2009-10-29 12:43:55 EDT (Thu, 29 Oct 2009)
New Revision: 57230
URL: http://svn.boost.org/trac/boost/changeset/57230
Log:
TBoost.STM vbe: Modification to make SLEEP work with boost::this_thread::sleep()
Text files modified:
sandbox/stm/branches/vbe/boost/stm/datatypes.hpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Modified: sandbox/stm/branches/vbe/boost/stm/datatypes.hpp
==============================================================================
--- sandbox/stm/branches/vbe/boost/stm/datatypes.hpp (original)
+++ sandbox/stm/branches/vbe/boost/stm/datatypes.hpp 2009-10-29 12:43:55 EDT (Thu, 29 Oct 2009)
@@ -21,7 +21,12 @@
//-----------------------------------------------------------------------------
#include <boost/stm/detail/config.hpp>
//-----------------------------------------------------------------------------
-
+#if defined(BOOST_STM_USE_BOOST_THREAD_ID) || defined(BOOST_STM_USE_BOOST_SLEEP)
+#include <boost/thread/thread.hpp>
+#endif
+#if defined(BOOST_STM_USE_BOOST_THREAD_ID)
+#include <boost/thread/mutex.hpp>
+#endif
//-----------------------------------------------------------------------------
namespace boost { namespace stm {
@@ -141,7 +146,6 @@
#ifndef BOOST_STM_USE_BOOST_MUTEX
typedef pthread_mutex_t Mutex;
- //typedef pthread_mutex_t PLOCK;
#else
typedef boost::mutex Mutex;
#endif
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