input/AsyncInputStream: add noexcept

This commit is contained in:
Max Kellermann 2019-04-04 19:52:42 +02:00
parent 58d7804d66
commit 693815bb32
2 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@
AsyncInputStream::AsyncInputStream(EventLoop &event_loop, const char *_url, AsyncInputStream::AsyncInputStream(EventLoop &event_loop, const char *_url,
Mutex &_mutex, Mutex &_mutex,
size_t _buffer_size, size_t _buffer_size,
size_t _resume_at) size_t _resume_at) noexcept
:InputStream(_url, _mutex), :InputStream(_url, _mutex),
deferred_resume(event_loop, BIND_THIS_METHOD(DeferredResume)), deferred_resume(event_loop, BIND_THIS_METHOD(DeferredResume)),
deferred_seek(event_loop, BIND_THIS_METHOD(DeferredSeek)), deferred_seek(event_loop, BIND_THIS_METHOD(DeferredSeek)),
@ -42,7 +42,7 @@ AsyncInputStream::AsyncInputStream(EventLoop &event_loop, const char *_url,
allocation.ForkCow(false); allocation.ForkCow(false);
} }
AsyncInputStream::~AsyncInputStream() AsyncInputStream::~AsyncInputStream() noexcept
{ {
buffer.Clear(); buffer.Clear();
} }

View File

@ -72,11 +72,11 @@ public:
AsyncInputStream(EventLoop &event_loop, const char *_url, AsyncInputStream(EventLoop &event_loop, const char *_url,
Mutex &_mutex, Mutex &_mutex,
size_t _buffer_size, size_t _buffer_size,
size_t _resume_at); size_t _resume_at) noexcept;
virtual ~AsyncInputStream(); virtual ~AsyncInputStream() noexcept;
EventLoop &GetEventLoop() { EventLoop &GetEventLoop() noexcept {
return deferred_resume.GetEventLoop(); return deferred_resume.GetEventLoop();
} }