Commit 693815bb authored by Max Kellermann's avatar Max Kellermann

input/AsyncInputStream: add `noexcept`

parent 58d7804d
......@@ -31,7 +31,7 @@
AsyncInputStream::AsyncInputStream(EventLoop &event_loop, const char *_url,
Mutex &_mutex,
size_t _buffer_size,
size_t _resume_at)
size_t _resume_at) noexcept
:InputStream(_url, _mutex),
deferred_resume(event_loop, BIND_THIS_METHOD(DeferredResume)),
deferred_seek(event_loop, BIND_THIS_METHOD(DeferredSeek)),
......@@ -42,7 +42,7 @@ AsyncInputStream::AsyncInputStream(EventLoop &event_loop, const char *_url,
allocation.ForkCow(false);
}
AsyncInputStream::~AsyncInputStream()
AsyncInputStream::~AsyncInputStream() noexcept
{
buffer.Clear();
}
......
......@@ -72,11 +72,11 @@ public:
AsyncInputStream(EventLoop &event_loop, const char *_url,
Mutex &_mutex,
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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment