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
273470e8
Commit
273470e8
authored
Jan 18, 2006
by
Robert Reif
Committed by
Alexandre Julliard
Jan 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Add critical section names for debugging.
parent
bde68851
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
audio.c
dlls/winmm/winealsa/audio.c
+4
-0
No files found.
dlls/winmm/winealsa/audio.c
View file @
273470e8
...
...
@@ -1663,6 +1663,7 @@ static int ALSA_InitRingMessage(ALSA_MSG_RING* omr)
omr
->
messages
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
omr
->
ring_buffer_size
*
sizeof
(
ALSA_MSG
));
InitializeCriticalSection
(
&
omr
->
msg_crst
);
omr
->
msg_crst
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)
"WINEALSA_msg_crst"
;
return
0
;
}
...
...
@@ -1680,6 +1681,7 @@ static int ALSA_DestroyRingMessage(ALSA_MSG_RING* omr)
#endif
HeapFree
(
GetProcessHeap
(),
0
,
omr
->
messages
);
omr
->
ring_buffer_size
=
0
;
omr
->
msg_crst
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
omr
->
msg_crst
);
return
0
;
}
...
...
@@ -3178,6 +3180,7 @@ static int DSDB_CreateMMAP(IDsDriverBufferImpl* pdbi)
frames
,
pdbi
->
mmap_buflen_bytes
,
pdbi
->
mmap_buffer
);
InitializeCriticalSection
(
&
pdbi
->
mmap_crst
);
pdbi
->
mmap_crst
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)
"WINEALSA_mmap_crst"
;
err
=
snd_async_add_pcm_handler
(
&
pdbi
->
mmap_async_handler
,
wwo
->
pcm
,
DSDB_PCMCallback
,
pdbi
);
if
(
err
<
0
)
...
...
@@ -3194,6 +3197,7 @@ static void DSDB_DestroyMMAP(IDsDriverBufferImpl* pdbi)
TRACE
(
"mmap buffer %p destroyed
\n
"
,
pdbi
->
mmap_buffer
);
pdbi
->
mmap_areas
=
NULL
;
pdbi
->
mmap_buffer
=
NULL
;
pdbi
->
mmap_crst
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
pdbi
->
mmap_crst
);
}
...
...
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