You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Added patch to fix handling of periodic advice timers causing high CPU usage.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
From e2d401d2f7ac762968cbc25bf2fccb3fb749770a Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Sun, 7 Jun 2015 20:15:20 +0200
|
||||
Subject: quartz: Fix handling of periodic advice timers.
|
||||
|
||||
---
|
||||
dlls/quartz/systemclock.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/dlls/quartz/systemclock.c b/dlls/quartz/systemclock.c
|
||||
index 043299b..cdb06f7 100644
|
||||
--- a/dlls/quartz/systemclock.c
|
||||
+++ b/dlls/quartz/systemclock.c
|
||||
@@ -127,6 +127,7 @@ static DWORD WINAPI SystemClockAdviseThread(LPVOID lpParam) {
|
||||
it = nextit;
|
||||
}
|
||||
if (NULL != it) timeOut = (DWORD) ((it->rtBaseTime + it->rtIntervalTime) - curTime) / (REFERENCE_TIME)10000;
|
||||
+ else timeOut = INFINITE;
|
||||
|
||||
/** Now Periodics Advice: semi sorted list (sort cannot be used) */
|
||||
for (it = This->pPeriodicAdvise; NULL != it; it = it->next) {
|
||||
--
|
||||
2.4.2
|
||||
|
||||
1
patches/quartz-Advice_Timers/definition
Normal file
1
patches/quartz-Advice_Timers/definition
Normal file
@@ -0,0 +1 @@
|
||||
Fixes: Fix handling of periodic advice timers causing high CPU usage
|
||||
Reference in New Issue
Block a user