=?UTF-8?Q?J=C3=B6rg=20H=C3=B6hle=20?=: ntdll: Use the monotonic time counter also for timer queues.

Alexandre Julliard julliard at winehq.org
Thu Feb 7 14:07:24 CST 2013


Module: wine
Branch: master
Commit: 4f6db78ca0f4f01d8a8734ddc332cc3ea1a8587e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4f6db78ca0f4f01d8a8734ddc332cc3ea1a8587e

Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date:   Tue Feb  5 18:01:04 2013 +0100

ntdll: Use the monotonic time counter also for timer queues.

---

 dlls/ntdll/threadpool.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c
index 81abac3..f246cfb 100644
--- a/dlls/ntdll/threadpool.c
+++ b/dlls/ntdll/threadpool.c
@@ -605,9 +605,9 @@ static DWORD WINAPI timer_callback_wrapper(LPVOID p)
 
 static inline ULONGLONG queue_current_time(void)
 {
-    LARGE_INTEGER now;
-    NtQuerySystemTime(&now);
-    return now.QuadPart / 10000;
+    LARGE_INTEGER now, freq;
+    NtQueryPerformanceCounter(&now, &freq);
+    return now.QuadPart * 1000 / freq.QuadPart;
 }
 
 static void queue_add_timer(struct queue_timer *t, ULONGLONG time,




More information about the wine-cvs mailing list