event/SocketMonitor: add "noexcept"

This commit is contained in:
Max Kellermann
2017-11-10 20:20:07 +01:00
parent 9d4020501c
commit 59a8836924
21 changed files with 61 additions and 54 deletions

View File

@@ -65,7 +65,7 @@ public:
curl_socket_t s, int action,
void *userp, void *socketp) noexcept;
virtual bool OnSocketReady(unsigned flags) override;
bool OnSocketReady(unsigned flags) noexcept override;
private:
static constexpr int FlagsToCurlCSelect(unsigned flags) {
@@ -145,7 +145,7 @@ CurlSocket::SocketFunction(gcc_unused CURL *easy,
}
bool
CurlSocket::OnSocketReady(unsigned flags)
CurlSocket::OnSocketReady(unsigned flags) noexcept
{
assert(GetEventLoop().IsInside());

View File

@@ -446,7 +446,7 @@ NfsConnection::Service(unsigned flags)
}
bool
NfsConnection::OnSocketReady(unsigned flags)
NfsConnection::OnSocketReady(unsigned flags) noexcept
{
assert(GetEventLoop().IsInside());
assert(deferred_close.empty());

View File

@@ -230,7 +230,7 @@ private:
int Service(unsigned flags);
/* virtual methods from SocketMonitor */
virtual bool OnSocketReady(unsigned flags) override;
bool OnSocketReady(unsigned flags) noexcept override;
/* callback for #mount_timeout_event */
void OnMountTimeout();