|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83282 - trunk/boost/thread/v2
From: vicente.botet_at_[hidden]
Date: 2013-03-03 09:07:29
Author: viboes
Date: 2013-03-03 09:07:28 EST (Sun, 03 Mar 2013)
New Revision: 83282
URL: http://svn.boost.org/trac/boost/changeset/83282
Log:
Thread: take care of #8136
Text files modified:
trunk/boost/thread/v2/thread.hpp | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
Modified: trunk/boost/thread/v2/thread.hpp
==============================================================================
--- trunk/boost/thread/v2/thread.hpp (original)
+++ trunk/boost/thread/v2/thread.hpp 2013-03-03 09:07:28 EST (Sun, 03 Mar 2013)
@@ -68,11 +68,8 @@
using namespace chrono;
if (d > duration<Rep, Period>::zero())
{
- steady_clock::time_point c_now = steady_clock::now();
- do
- {
- sleep_until(system_clock::now() + ceil<nanoseconds>(d));
- } while (steady_clock::now() - c_now < d );
+ steady_clock::time_point c_timeout = steady_clock::now() + ceil<nanoseconds>(d);
+ sleep_until(c_timeout);
}
}
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