input/InputStream: make IsEOF() and IsAvailable() const

This commit is contained in:
Max Kellermann
2019-05-29 13:31:54 +02:00
parent 40a48cfba0
commit 971450f0d4
22 changed files with 42 additions and 40 deletions

View File

@@ -122,7 +122,7 @@ ThreadInputStream::Check()
}
bool
ThreadInputStream::IsAvailable() noexcept
ThreadInputStream::IsAvailable() const noexcept
{
assert(!thread.IsInside());
@@ -160,7 +160,7 @@ ThreadInputStream::Read(std::unique_lock<Mutex> &lock,
}
bool
ThreadInputStream::IsEOF() noexcept
ThreadInputStream::IsEOF() const noexcept
{
assert(!thread.IsInside());