Commit 7740855a authored by Max Kellermann's avatar Max Kellermann

db/upnp/WorkQueue: remove unused "szp" parameter from take()

parent d605170f
...@@ -109,8 +109,7 @@ discoExplorer(void *) ...@@ -109,8 +109,7 @@ discoExplorer(void *)
{ {
for (;;) { for (;;) {
DiscoveredTask *tsk = 0; DiscoveredTask *tsk = 0;
size_t qsz; if (!discoveredQueue.take(&tsk)) {
if (!discoveredQueue.take(&tsk, &qsz)) {
discoveredQueue.workerExit(); discoveredQueue.workerExit();
return (void*)1; return (void*)1;
} }
......
...@@ -241,7 +241,7 @@ public: ...@@ -241,7 +241,7 @@ public:
* Sleeps if there are not enough. Signal if we go to sleep on empty * Sleeps if there are not enough. Signal if we go to sleep on empty
* queue: client may be waiting for our going idle. * 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); const ScopeLock protect(m_mutex);
...@@ -267,8 +267,6 @@ public: ...@@ -267,8 +267,6 @@ public:
} }
*tp = m_queue.front(); *tp = m_queue.front();
if (szp)
*szp = m_queue.size();
m_queue.pop(); m_queue.pop();
if (m_clients_waiting > 0) { if (m_clients_waiting > 0) {
// No reason to wake up more than one client thread // No reason to wake up more than one client thread
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment