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
67232453
Commit
67232453
authored
Aug 07, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/Control: more locking information in API docs
parent
b4cce807
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
Control.hxx
src/output/Control.hxx
+24
-5
No files found.
src/output/Control.hxx
View file @
67232453
...
...
@@ -353,6 +353,8 @@ public:
}
/**
* Caller must lock the mutex.
*
* Throws #std::runtime_error on error.
*/
void
InternalOpen2
(
AudioFormat
in_audio_format
);
...
...
@@ -405,30 +407,37 @@ public:
private
:
/**
* Runs inside the OutputThread. Handles exceptions.
* Runs inside the OutputThread.
* Caller must lock the mutex.
* Handles exceptions.
*
* @return true on success
*/
bool
InternalEnable
()
noexcept
;
/**
* Runs inside the OutputThread. Handles exceptions.
* Runs inside the OutputThread.
* Caller must lock the mutex.
*/
void
InternalDisable
()
noexcept
;
/**
* Runs inside the OutputThread. Handles exceptions.
* Runs inside the OutputThread.
* Caller must lock the mutex.
* Handles exceptions.
*/
void
InternalOpen
(
AudioFormat
audio_format
,
const
MusicPipe
&
pipe
)
noexcept
;
/**
* Runs inside the OutputThread.
* Caller must lock the mutex.
*/
void
InternalClose
(
bool
drain
)
noexcept
;
/**
* Runs inside the OutputThread.
* Caller must lock the mutex.
*/
void
InternalCheckClose
(
bool
drain
)
noexcept
;
...
...
@@ -440,8 +449,14 @@ private:
*/
bool
WaitForDelay
()
noexcept
;
/**
* Caller must lock the mutex.
*/
bool
FillSourceOrClose
();
/**
* Caller must lock the mutex.
*/
bool
PlayChunk
()
noexcept
;
/**
...
...
@@ -449,7 +464,9 @@ private:
* been reached (and no more chunks are queued), or until a
* command is received.
*
* Runs inside the OutputThread. Handles exceptions.
* Runs inside the OutputThread.
* Caller must lock the mutex.
* Handles exceptions.
*
* @return true if at least one chunk has been available,
* false if the tail of the pipe was already reached
...
...
@@ -457,7 +474,9 @@ private:
bool
InternalPlay
()
noexcept
;
/**
* Runs inside the OutputThread. Handles exceptions.
* Runs inside the OutputThread.
* Caller must lock the mutex.
* Handles exceptions.
*/
void
InternalPause
()
noexcept
;
...
...
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