Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75789 - trunk/boost/thread/pthread
From: vicente.botet_at_[hidden]
Date: 2011-12-03 09:11:03


Author: viboes
Date: 2011-12-03 09:11:02 EST (Sat, 03 Dec 2011)
New Revision: 75789
URL: http://svn.boost.org/trac/boost/changeset/75789

Log:
Thread: 3762 Thread can't be compiled with winscw (Codewarrior by Nokia) (pthread part)
Text files modified:
   trunk/boost/thread/pthread/condition_variable.hpp | 8 ++++----
   trunk/boost/thread/pthread/mutex.hpp | 18 +++++++++---------
   trunk/boost/thread/pthread/once.hpp | 7 +++----
   trunk/boost/thread/pthread/recursive_mutex.hpp | 4 ++--
   4 files changed, 18 insertions(+), 19 deletions(-)

Modified: trunk/boost/thread/pthread/condition_variable.hpp
==============================================================================
--- trunk/boost/thread/pthread/condition_variable.hpp (original)
+++ trunk/boost/thread/pthread/condition_variable.hpp 2011-12-03 09:11:02 EST (Sat, 03 Dec 2011)
@@ -5,10 +5,10 @@
 // http://www.boost.org/LICENSE_1_0.txt)
 // (C) Copyright 2007-10 Anthony Williams
 
-#include "timespec.hpp"
-#include "pthread_mutex_scoped_lock.hpp"
-#include "thread_data.hpp"
-#include "condition_variable_fwd.hpp"
+#include <boost/thread/pthread/timespec.hpp>
+#include <boost/thread/pthread/pthread_mutex_scoped_lock.hpp>
+#include <boost/thread/pthread/thread_data.hpp>
+#include <boost/thread/pthread/condition_variable_fwd.hpp>
 
 #include <boost/config/abi_prefix.hpp>
 

Modified: trunk/boost/thread/pthread/mutex.hpp
==============================================================================
--- trunk/boost/thread/pthread/mutex.hpp (original)
+++ trunk/boost/thread/pthread/mutex.hpp 2011-12-03 09:11:02 EST (Sat, 03 Dec 2011)
@@ -14,8 +14,8 @@
 #include <boost/thread/xtime.hpp>
 #include <boost/assert.hpp>
 #include <errno.h>
-#include "timespec.hpp"
-#include "pthread_mutex_scoped_lock.hpp"
+#include <boost/thread/pthread/timespec.hpp>
+#include <boost/thread/pthread/pthread_mutex_scoped_lock.hpp>
 
 #ifdef _POSIX_TIMEOUTS
 #if _POSIX_TIMEOUTS >= 0
@@ -31,7 +31,7 @@
     {
     private:
         mutex(mutex const&);
- mutex& operator=(mutex const&);
+ mutex& operator=(mutex const&);
         pthread_mutex_t m;
     public:
         mutex()
@@ -46,7 +46,7 @@
         {
             BOOST_VERIFY(!pthread_mutex_destroy(&m));
         }
-
+
         void lock()
         {
             int const res=pthread_mutex_lock(&m);
@@ -60,7 +60,7 @@
         {
             BOOST_VERIFY(!pthread_mutex_unlock(&m));
         }
-
+
         bool try_lock()
         {
             int const res=pthread_mutex_trylock(&m);
@@ -68,7 +68,7 @@
             {
                 boost::throw_exception(lock_error(res));
             }
-
+
             return !res;
         }
 
@@ -88,7 +88,7 @@
     {
     private:
         timed_mutex(timed_mutex const&);
- timed_mutex& operator=(timed_mutex const&);
+ timed_mutex& operator=(timed_mutex const&);
     private:
         pthread_mutex_t m;
 #ifndef BOOST_PTHREAD_HAS_TIMEDLOCK
@@ -141,7 +141,7 @@
         {
             BOOST_VERIFY(!pthread_mutex_unlock(&m));
         }
-
+
         bool try_lock()
         {
             int const res=pthread_mutex_trylock(&m);
@@ -179,7 +179,7 @@
             is_locked=false;
             BOOST_VERIFY(!pthread_cond_signal(&cond));
         }
-
+
         bool try_lock()
         {
             boost::pthread::pthread_mutex_scoped_lock const local_lock(&m);

Modified: trunk/boost/thread/pthread/once.hpp
==============================================================================
--- trunk/boost/thread/pthread/once.hpp (original)
+++ trunk/boost/thread/pthread/once.hpp 2011-12-03 09:11:02 EST (Sat, 03 Dec 2011)
@@ -3,7 +3,7 @@
 
 // once.hpp
 //
-// (C) Copyright 2007-8 Anthony Williams
+// (C) Copyright 2007-8 Anthony Williams
 //
 // Distributed under the Boost Software License, Version 1.0. (See
 // accompanying file LICENSE_1_0.txt or copy at
@@ -14,7 +14,6 @@
 
 #include <pthread.h>
 #include <boost/assert.hpp>
-#include "pthread_mutex_scoped_lock.hpp"
 #include <boost/thread/pthread/pthread_mutex_scoped_lock.hpp>
 #include <boost/cstdint.hpp>
 
@@ -35,7 +34,7 @@
         BOOST_THREAD_DECL extern pthread_mutex_t once_epoch_mutex;
         BOOST_THREAD_DECL extern pthread_cond_t once_epoch_cv;
     }
-
+
 #define BOOST_ONCE_INITIAL_FLAG_VALUE 0
 #define BOOST_ONCE_INIT {BOOST_ONCE_INITIAL_FLAG_VALUE}
 
@@ -49,7 +48,7 @@
         static boost::uintmax_t const being_initialized=uninitialized_flag+1;
         boost::uintmax_t const epoch=flag.epoch;
         boost::uintmax_t& this_thread_epoch=detail::get_once_per_thread_epoch();
-
+
         if(epoch<this_thread_epoch)
         {
             pthread::pthread_mutex_scoped_lock lk(&detail::once_epoch_mutex);

Modified: trunk/boost/thread/pthread/recursive_mutex.hpp
==============================================================================
--- trunk/boost/thread/pthread/recursive_mutex.hpp (original)
+++ trunk/boost/thread/pthread/recursive_mutex.hpp 2011-12-03 09:11:02 EST (Sat, 03 Dec 2011)
@@ -17,8 +17,8 @@
 #endif
 #include <boost/date_time/posix_time/conversion.hpp>
 #include <errno.h>
-#include "timespec.hpp"
-#include "pthread_mutex_scoped_lock.hpp"
+#include <boost/thread/pthread/timespec.hpp>
+#include <boost/thread/pthread/pthread_mutex_scoped_lock.hpp>
 
 #ifdef _POSIX_TIMEOUTS
 #if _POSIX_TIMEOUTS >= 0


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