input/InputStreams: pass std::unique_lock<> to various methods

This commit is contained in:
Max Kellermann
2019-04-26 19:19:45 +02:00
parent 040573c636
commit 1b5c1f75a4
33 changed files with 212 additions and 156 deletions

View File

@@ -403,7 +403,7 @@ try {
dc.cond.wait(lock);
}
size_t nbytes = is.Read(buffer, length);
size_t nbytes = is.Read(lock, buffer, length);
assert(nbytes > 0 || is.IsEOF());
return nbytes;