Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
86b40413
Commit
86b40413
authored
Jun 11, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Initialize the timer critical section statically.
parent
3f20252e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
time.c
dlls/winmm/time.c
+9
-4
No files found.
dlls/winmm/time.c
View file @
86b40413
...
...
@@ -63,8 +63,16 @@ typedef struct tagWINE_TIMERENTRY {
static
struct
list
timer_list
=
LIST_INIT
(
timer_list
);
static
CRITICAL_SECTION
TIME_cbcrst
;
static
CRITICAL_SECTION_DEBUG
critsect_debug
=
{
0
,
0
,
&
TIME_cbcrst
,
{
&
critsect_debug
.
ProcessLocksList
,
&
critsect_debug
.
ProcessLocksList
},
0
,
0
,
{
(
DWORD_PTR
)(
__FILE__
": TIME_cbcrst"
)
}
};
static
CRITICAL_SECTION
TIME_cbcrst
=
{
&
critsect_debug
,
-
1
,
0
,
0
,
0
,
0
};
static
HANDLE
TIME_hMMTimer
;
static
CRITICAL_SECTION
TIME_cbcrst
;
static
BOOL
TIME_TimeToDie
=
TRUE
;
static
int
TIME_fdWake
[
2
]
=
{
-
1
,
-
1
};
...
...
@@ -243,8 +251,6 @@ static void TIME_MMTimeStart(void)
TIME_TimeToDie
=
FALSE
;
TIME_hMMTimer
=
CreateThread
(
NULL
,
0
,
TIME_MMSysTimeThread
,
NULL
,
0
,
NULL
);
SetThreadPriority
(
TIME_hMMTimer
,
THREAD_PRIORITY_TIME_CRITICAL
);
InitializeCriticalSection
(
&
TIME_cbcrst
);
TIME_cbcrst
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": WINMM.TIME_cbcrst"
);
}
}
...
...
@@ -265,7 +271,6 @@ void TIME_MMTimeStop(void)
TIME_fdWake
[
0
]
=
TIME_fdWake
[
1
]
=
-
1
;
CloseHandle
(
TIME_hMMTimer
);
TIME_hMMTimer
=
0
;
TIME_cbcrst
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
TIME_cbcrst
);
}
}
...
...
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