input/buffering: remove obsolete thread wakeup

The thread will always attempt to read more data since commit
2cf6b77627, so we don't need to tell it
to continue.
This commit is contained in:
Max Kellermann 2019-05-17 11:56:30 +02:00
parent 1153715608
commit 16a07bc201

View File

@ -102,12 +102,6 @@ BufferingInputStream::Read(std::unique_lock<Mutex> &lock, void *ptr, size_t s)
size_t nbytes = std::min(s, r.defined_buffer.size);
memcpy(ptr, r.defined_buffer.data, nbytes);
offset += nbytes;
if (!IsAvailable()) {
/* wake up the sleeping thread */
wake_cond.notify_all();
}
return nbytes;
}