Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Иван Мажукин
mpd
Commits
9802e748
Commit
9802e748
authored
Nov 06, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DecoderInternal: lock DecoderControl in _flush_chunk()
Must hold the Mutex to signal the Cond object safely.
parent
8e7d6eb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
DecoderInternal.cxx
src/DecoderInternal.cxx
+2
-0
DecoderInternal.hxx
src/DecoderInternal.hxx
+2
-0
No files found.
src/DecoderInternal.cxx
View file @
9802e748
...
...
@@ -101,5 +101,7 @@ decoder_flush_chunk(Decoder &decoder)
decoder
.
chunk
=
nullptr
;
dc
.
Lock
();
dc
.
client_cond
.
signal
();
dc
.
Unlock
();
}
src/DecoderInternal.hxx
View file @
9802e748
...
...
@@ -108,6 +108,8 @@ decoder_get_chunk(Decoder &decoder);
/**
* Flushes the current chunk.
*
* Caller must not lock the #DecoderControl object.
*/
void
decoder_flush_chunk
(
Decoder
&
decoder
);
...
...
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