Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77444 - trunk/boost/chrono/detail/inlined/posix
From: vicente.botet_at_[hidden]
Date: 2012-03-20 20:44:10


Author: viboes
Date: 2012-03-20 20:44:09 EDT (Tue, 20 Mar 2012)
New Revision: 77444
URL: http://svn.boost.org/trac/boost/changeset/77444

Log:
Chrono: apply path for #6666
Text files modified:
   trunk/boost/chrono/detail/inlined/posix/thread_clock.hpp | 11 ++++++-----
   1 files changed, 6 insertions(+), 5 deletions(-)

Modified: trunk/boost/chrono/detail/inlined/posix/thread_clock.hpp
==============================================================================
--- trunk/boost/chrono/detail/inlined/posix/thread_clock.hpp (original)
+++ trunk/boost/chrono/detail/inlined/posix/thread_clock.hpp 2012-03-20 20:44:09 EDT (Tue, 20 Mar 2012)
@@ -15,6 +15,7 @@
 #include <cassert>
 
 # include <sys/times.h>
+# include <pthread.h>
 # include <unistd.h>
 
 namespace boost { namespace chrono {
@@ -45,7 +46,7 @@
     }
 
 #if !defined BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING
- thread_clock::time_point thread_clock::now( system::error_code & ec )
+ thread_clock::time_point thread_clock::now( system::error_code & ec )
     {
       struct timespec ts;
 #if defined CLOCK_THREAD_CPUTIME_ID
@@ -64,9 +65,9 @@
             if (BOOST_CHRONO_IS_THROWS(ec))
             {
                 boost::throw_exception(
- system::system_error(
- errno,
- BOOST_CHRONO_SYSTEM_CATEGORY,
+ system::system_error(
+ errno,
+ BOOST_CHRONO_SYSTEM_CATEGORY,
                                 "chrono::thread_clock" ));
             }
             else
@@ -75,7 +76,7 @@
                 return time_point();
             }
         }
- if (!BOOST_CHRONO_IS_THROWS(ec))
+ if (!BOOST_CHRONO_IS_THROWS(ec))
         {
             ec.clear();
         }


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