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

View File

@@ -46,7 +46,7 @@ ThreadInputStream::Stop() noexcept
{
const std::lock_guard<Mutex> lock(mutex);
close = true;
wake_cond.signal();
wake_cond.notify_one();
}
Cancel();
@@ -145,7 +145,7 @@ ThreadInputStream::Read(void *ptr, size_t read_size)
size_t nbytes = std::min(read_size, r.size);
memcpy(ptr, r.data, nbytes);
buffer.Consume(nbytes);
wake_cond.broadcast();
wake_cond.notify_all();
offset += nbytes;
return nbytes;
}