Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85714 - trunk/libs/thread/src/win32
From: vicente.botet_at_[hidden]
Date: 2013-09-16 15:43:37


Author: viboes
Date: 2013-09-16 15:43:37 EDT (Mon, 16 Sep 2013)
New Revision: 85714
URL: http://svn.boost.org/trac/boost/changeset/85714

Log:
Thread: patch for #8070 to make use of GetTickCount64 when available.

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

Modified: trunk/libs/thread/src/win32/thread.cpp
==============================================================================
--- trunk/libs/thread/src/win32/thread.cpp Mon Sep 16 14:58:52 2013 (r85713)
+++ trunk/libs/thread/src/win32/thread.cpp 2013-09-16 15:43:37 EDT (Mon, 16 Sep 2013) (r85714)
@@ -279,6 +279,12 @@
                 interruption_enabled=false;
 #endif
             }
+// ~externally_launched_thread() {
+// BOOST_ASSERT(notify.empty());
+// notify.clear();
+// BOOST_ASSERT(async_states_.empty());
+// async_states_.clear();
+// }
 
             void run()
             {}
@@ -430,7 +436,7 @@
                 LARGE_INTEGER due_time={{0,0}};
                 if(target_time.relative)
                 {
- unsigned long const elapsed_milliseconds=GetTickCount()-target_time.start;
+ unsigned long const elapsed_milliseconds=win32::GetTickCount64()-target_time.start;
                     LONGLONG const remaining_milliseconds=(target_time.milliseconds-elapsed_milliseconds);
                     LONGLONG const hundred_nanoseconds_in_one_millisecond=10000;
 


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