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
39968ccd
Commit
39968ccd
authored
Sep 30, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Remove unneeded TIME_TimeToDie, the thread ends when list is empty.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
40d3b946
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
time.c
dlls/winmm/time.c
+2
-6
No files found.
dlls/winmm/time.c
View file @
39968ccd
...
...
@@ -58,7 +58,6 @@ static CRITICAL_SECTION_DEBUG critsect_debug =
static
CRITICAL_SECTION
TIME_cbcrst
=
{
&
critsect_debug
,
-
1
,
0
,
0
,
0
,
0
};
static
HANDLE
TIME_hMMTimer
;
static
BOOL
TIME_TimeToDie
=
TRUE
;
static
CONDITION_VARIABLE
TIME_cv
;
/* link timer at the appropriate spot in the list */
...
...
@@ -198,7 +197,7 @@ static DWORD CALLBACK TIME_MMSysTimeThread(LPVOID arg)
TRACE
(
"Starting main winmm thread
\n
"
);
EnterCriticalSection
(
&
WINMM_cs
);
while
(
!
TIME_TimeToDie
)
while
(
1
)
{
sleep_time
=
TIME_MMSysTimeCallback
();
...
...
@@ -228,7 +227,6 @@ static DWORD CALLBACK TIME_MMSysTimeThread(LPVOID arg)
static
void
TIME_MMTimeStart
(
void
)
{
HMODULE
mod
;
TIME_TimeToDie
=
0
;
if
(
TIME_hMMTimer
)
return
;
GetModuleHandleExW
(
GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
,
(
LPCWSTR
)
TIME_MMSysTimeThread
,
&
mod
);
...
...
@@ -345,10 +343,8 @@ MMRESULT WINAPI timeKillEvent(UINT wID)
break
;
}
}
if
(
list_empty
(
&
timer_list
))
{
TIME_TimeToDie
=
1
;
if
(
list_empty
(
&
timer_list
))
WakeConditionVariable
(
&
TIME_cv
);
}
LeaveCriticalSection
(
&
WINMM_cs
);
if
(
!
lpSelf
)
...
...
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