input/InputStream: make IsEOF() and IsAvailable() const
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user