event/SocketMonitor: add "noexcept"
This commit is contained in:
@@ -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());
|
||||
|
||||
|
@@ -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());
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user