|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72155 - trunk/boost/chrono/detail/inlined/posix
From: vicente.botet_at_[hidden]
Date: 2011-05-25 08:36:48
Author: viboes
Date: 2011-05-25 08:36:47 EDT (Wed, 25 May 2011)
New Revision: 72155
URL: http://svn.boost.org/trac/boost/changeset/72155
Log:
Chrono: Fix missing struct timespec ts declaration
Text files modified:
trunk/boost/chrono/detail/inlined/posix/thread_clock.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 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 2011-05-25 08:36:47 EDT (Wed, 25 May 2011)
@@ -21,6 +21,7 @@
thread_clock::time_point thread_clock::now( )
{
+ struct timespec ts;
#if defined CLOCK_THREAD_CPUTIME_ID
// get the timespec associated to the thread clock
if ( ::clock_gettime( CLOCK_THREAD_CPUTIME_ID, &ts ) )
@@ -31,7 +32,6 @@
clockid_t clock_id;
pthread_getcpuclockid(pth, &clock_id);
// get the timespec associated to the thread clock
- struct timespec ts;
if ( ::clock_gettime( clock_id, &ts ) )
#endif
{
@@ -49,6 +49,7 @@
}
thread_clock::time_point thread_clock::now( system::error_code & ec )
{
+ struct timespec ts;
#if defined CLOCK_THREAD_CPUTIME_ID
// get the timespec associated to the thread clock
if ( ::clock_gettime( CLOCK_THREAD_CPUTIME_ID, &ts ) )
@@ -59,7 +60,6 @@
clockid_t clock_id;
pthread_getcpuclockid(pth, &clock_id);
// get the timespec associated to the thread clock
- struct timespec ts;
if ( ::clock_gettime( clock_id, &ts ) )
#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