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:
parent
1153715608
commit
16a07bc201
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user