Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62642 - trunk/libs/thread/src/win32
From: anthony_at_[hidden]
Date: 2010-06-09 04:19:49


Author: anthonyw
Date: 2010-06-09 04:19:47 EDT (Wed, 09 Jun 2010)
New Revision: 62642
URL: http://svn.boost.org/trac/boost/changeset/62642

Log:
Use time_duration::tick_type rather than long when calculating due
time to fix issue #4318

Text files modified:
   trunk/libs/thread/src/win32/thread.cpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/libs/thread/src/win32/thread.cpp
==============================================================================
--- trunk/libs/thread/src/win32/thread.cpp (original)
+++ trunk/libs/thread/src/win32/thread.cpp 2010-06-09 04:19:47 EDT (Wed, 09 Jun 2010)
@@ -356,10 +356,12 @@
                     else
                     {
                         long const hundred_nanoseconds_in_one_second=10000000;
- long const ticks_per_second=target_time.abs_time.time_of_day().ticks_per_second();
+ posix_time::time_duration::tick_type const ticks_per_second=
+ target_time.abs_time.time_of_day().ticks_per_second();
                         if(ticks_per_second>hundred_nanoseconds_in_one_second)
                         {
- long const ticks_per_hundred_nanoseconds=
+ posix_time::time_duration::tick_type const
+ ticks_per_hundred_nanoseconds=
                                 ticks_per_second/hundred_nanoseconds_in_one_second;
                             due_time.QuadPart+=
                                 target_time.abs_time.time_of_day().fractional_seconds()/


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