[Bug 22580] New: RegisterWaitForSingleObject() with tmo=0 causes 100% CPU load

wine-bugs at winehq.org wine-bugs at winehq.org
Tue May 4 13:21:15 CDT 2010


           Summary: RegisterWaitForSingleObject() with tmo=0 causes 100%
                    CPU load
           Product: Wine
           Version: unspecified
          Platform: x86
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ntdll
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: joakim.tjernlund at transmode.se

Created an attachment (id=27708)
 --> (http://bugs.winehq.org/attachment.cgi?id=27708)
RegisterWaitForSingleObject() fix special tmo == 0 case.

At http://msdn.microsoft.com/en-us/library/aa332406%28VS.71%29.aspx one
can read:
"If the timeOutInterval parameter is not zero (0) and the executeOnlyOnce
parameter is false, the timer is reset every time the event is signaled
or the time-out interval elapses."

timeOutInterval == 0 makes the above false and the timer should NOT
be reset, the attached patch fixes that.

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list