Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e0788992
Commit
e0788992
authored
Nov 02, 2004
by
Jeremy White
Committed by
Alexandre Julliard
Nov 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The Sleep(0) in this loop is incorrect, and should be removed. This
fixes iTunes and a game reported by che.
parent
6c1e2480
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
time.c
dlls/winmm/time.c
+0
-11
No files found.
dlls/winmm/time.c
View file @
e0788992
...
...
@@ -242,18 +242,7 @@ static DWORD CALLBACK TIME_MMSysTimeThread(LPVOID arg)
sleep_time
=
TIME_MMSysTimeCallback
(
iData
);
if
(
sleep_time
==
0
)
{
/* This Sleep is controversial; it was added to make
Wine able to replicate a high speed (e.g. 1 ms)
timer event where the called event routine chews
a lot of CPU. This is required because of the
bias some Linux kernel versions have against threads that
chew a lot of the CPU; this Sleep(0) yields enough
in that spin case doesn't trigger the bias.
Further, it should do no harm, but an fyi. */
Sleep
(
0
);
continue
;
}
rc
=
WaitForSingleObject
(
TIME_hWakeEvent
,
sleep_time
);
if
(
rc
!=
WAIT_TIMEOUT
&&
rc
!=
WAIT_OBJECT_0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment