thread/*Cond: rename methods to match std::condition_variable
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user