diff options
author | Max Kellermann <max@musicpd.org> | 2019-05-29 13:31:54 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-05-29 13:31:54 +0200 |
commit | 971450f0d4970b03668cdc527d27948d7166cb72 (patch) | |
tree | bf6d63c85756427316ede3f0997e52ac83ecb208 /src/input/InputStream.cxx | |
parent | 40a48cfba0ab5f654373eb4c82a15851f5c94e3b (diff) |
input/InputStream: make IsEOF() and IsAvailable() const
Diffstat (limited to 'src/input/InputStream.cxx')
-rw-r--r-- | src/input/InputStream.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/InputStream.cxx b/src/input/InputStream.cxx index f808fb5ee..439c2c178 100644 --- a/src/input/InputStream.cxx +++ b/src/input/InputStream.cxx @@ -105,7 +105,7 @@ InputStream::LockReadTag() noexcept } bool -InputStream::IsAvailable() noexcept +InputStream::IsAvailable() const noexcept { return true; } @@ -153,7 +153,7 @@ InputStream::LockReadFull(void *ptr, size_t _size) } bool -InputStream::LockIsEOF() noexcept +InputStream::LockIsEOF() const noexcept { const std::lock_guard<Mutex> protect(mutex); return IsEOF(); |