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
7740855a
Commit
7740855a
authored
Jan 14, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/upnp/WorkQueue: remove unused "szp" parameter from take()
parent
d605170f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
Discovery.cxx
src/db/upnp/Discovery.cxx
+1
-2
WorkQueue.hxx
src/db/upnp/WorkQueue.hxx
+1
-3
No files found.
src/db/upnp/Discovery.cxx
View file @
7740855a
...
...
@@ -109,8 +109,7 @@ discoExplorer(void *)
{
for
(;;)
{
DiscoveredTask
*
tsk
=
0
;
size_t
qsz
;
if
(
!
discoveredQueue
.
take
(
&
tsk
,
&
qsz
))
{
if
(
!
discoveredQueue
.
take
(
&
tsk
))
{
discoveredQueue
.
workerExit
();
return
(
void
*
)
1
;
}
...
...
src/db/upnp/WorkQueue.hxx
View file @
7740855a
...
...
@@ -241,7 +241,7 @@ public:
* Sleeps if there are not enough. Signal if we go to sleep on empty
* queue: client may be waiting for our going idle.
*/
bool
take
(
T
*
tp
,
size_t
*
szp
=
0
)
bool
take
(
T
*
tp
)
{
const
ScopeLock
protect
(
m_mutex
);
...
...
@@ -267,8 +267,6 @@ public:
}
*
tp
=
m_queue
.
front
();
if
(
szp
)
*
szp
=
m_queue
.
size
();
m_queue
.
pop
();
if
(
m_clients_waiting
>
0
)
{
// No reason to wake up more than one client thread
...
...
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