thread/*Cond: rename methods to match std::condition_variable

This commit is contained in:
Max Kellermann
2019-04-25 18:33:09 +02:00
parent 5bc8cd0ecb
commit b51bae5500
25 changed files with 72 additions and 72 deletions
+4 -4
View File
@@ -305,7 +305,7 @@ private:
const std::lock_guard<Mutex> lock(mutex);
/* notify the OutputThread that there is now
room in ring_buffer */
cond.signal();
cond.notify_one();
return true;
}
@@ -330,7 +330,7 @@ private:
const std::lock_guard<Mutex> lock(mutex);
error = std::current_exception();
active = false;
cond.signal();
cond.notify_one();
}
/* virtual methods from class MultiSocketMonitor */
@@ -956,7 +956,7 @@ try {
}
drain = false;
cond.signal();
cond.notify_one();
return;
}
}
@@ -984,7 +984,7 @@ try {
{
const std::lock_guard<Mutex> lock(mutex);
active = false;
cond.signal();
cond.notify_one();
}
/* avoid race condition: see if data has
@@ -120,7 +120,7 @@ HttpdOutput::OnDeferredBroadcast() noexcept
/* wake up the client that may be waiting for the queue to be
flushed */
cond.broadcast();
cond.notify_all();
}
void
@@ -398,7 +398,7 @@ HttpdOutput::CancelAllClients() noexcept
for (auto &client : clients)
client.CancelQueue();
cond.broadcast();
cond.notify_all();
}
void
+1 -1
View File
@@ -397,7 +397,7 @@ SlesOutput::PlayedCallback()
const std::lock_guard<Mutex> protect(mutex);
assert(n_queued > 0);
--n_queued;
cond.signal();
cond.notify_one();
}
static bool