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
9111bc2c
Commit
9111bc2c
authored
Apr 03, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/httpd: add more API documentation about locking
parent
37b54179
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
HttpdClient.hxx
src/output/plugins/httpd/HttpdClient.hxx
+2
-0
HttpdInternal.hxx
src/output/plugins/httpd/HttpdInternal.hxx
+12
-0
No files found.
src/output/plugins/httpd/HttpdClient.hxx
View file @
9111bc2c
...
...
@@ -142,6 +142,8 @@ public:
/**
* Frees the client and removes it from the server's client list.
*
* Caller must lock the mutex.
*/
void
Close
()
noexcept
;
...
...
src/output/plugins/httpd/HttpdInternal.hxx
View file @
9111bc2c
...
...
@@ -208,10 +208,15 @@ public:
return
HasClients
();
}
/**
* Caller must lock the mutex.
*/
void
AddClient
(
UniqueSocketDescriptor
fd
)
noexcept
;
/**
* Removes a client from the httpd_output.clients linked list.
*
* Caller must lock the mutex.
*/
void
RemoveClient
(
HttpdClient
&
client
)
noexcept
;
...
...
@@ -239,10 +244,14 @@ public:
/**
* Broadcasts data from the encoder to all clients.
*
* Mutext must not be locked.
*/
void
BroadcastFromEncoder
();
/**
* Mutext must not be locked.
*
* Throws #std::runtime_error on error.
*/
void
EncodeAndPlay
(
const
void
*
chunk
,
size_t
size
);
...
...
@@ -251,6 +260,9 @@ public:
size_t
Play
(
const
void
*
chunk
,
size_t
size
)
override
;
/**
* Mutext must not be locked.
*/
void
CancelAllClients
()
noexcept
;
void
Cancel
()
noexcept
override
;
...
...
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