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
04e2d084
Commit
04e2d084
authored
Aug 20, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/Control: inline WaitForDecoder()
parent
af4ffa91
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
Control.cxx
src/decoder/Control.cxx
+0
-6
Control.hxx
src/decoder/Control.hxx
+3
-1
No files found.
src/decoder/Control.cxx
View file @
04e2d084
...
...
@@ -41,12 +41,6 @@ DecoderControl::~DecoderControl() noexcept
}
void
DecoderControl
::
WaitForDecoder
(
std
::
unique_lock
<
Mutex
>
&
lock
)
noexcept
{
client_cond
.
wait
(
lock
);
}
void
DecoderControl
::
SetReady
(
const
AudioFormat
audio_format
,
bool
_seekable
,
SignedSongTime
_duration
)
noexcept
{
...
...
src/decoder/Control.hxx
View file @
04e2d084
...
...
@@ -215,7 +215,9 @@ public:
*
* Caller must hold the lock.
*/
void
WaitForDecoder
(
std
::
unique_lock
<
Mutex
>
&
lock
)
noexcept
;
void
WaitForDecoder
(
std
::
unique_lock
<
Mutex
>
&
lock
)
noexcept
{
client_cond
.
wait
(
lock
);
}
bool
IsIdle
()
const
noexcept
{
return
state
==
DecoderState
::
STOP
||
...
...
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