event/*, ...: make GetEventLoop() const

This commit is contained in:
Max Kellermann 2019-04-04 19:48:28 +02:00
parent 1de3ac6c78
commit 8cd5e79fbd
17 changed files with 17 additions and 19 deletions

View File

@ -66,7 +66,7 @@ public:
~UpdateService();
EventLoop &GetEventLoop() noexcept {
auto &GetEventLoop() const noexcept {
return defer.GetEventLoop();
}

View File

@ -50,7 +50,7 @@ public:
Cancel();
}
EventLoop &GetEventLoop() noexcept {
EventLoop &GetEventLoop() const noexcept {
return loop;
}

View File

@ -44,7 +44,7 @@ public:
:defer(_loop, BIND_THIS_METHOD(RunDeferred)),
callback(_callback), pending_mask(0) {}
EventLoop &GetEventLoop() {
auto &GetEventLoop() const noexcept {
return defer.GetEventLoop();
}

View File

@ -68,7 +68,7 @@ public:
~SocketMonitor() noexcept;
EventLoop &GetEventLoop() noexcept {
auto &GetEventLoop() const noexcept {
return loop;
}

View File

@ -62,7 +62,7 @@ public:
Cancel();
}
EventLoop &GetEventLoop() noexcept {
auto &GetEventLoop() const noexcept {
return loop;
}

View File

@ -76,7 +76,7 @@ public:
virtual ~AsyncInputStream();
EventLoop &GetEventLoop() {
auto &GetEventLoop() const noexcept {
return deferred_resume.GetEventLoop();
}

View File

@ -102,7 +102,7 @@ public:
~TidalSessionManager() noexcept;
EventLoop &GetEventLoop() noexcept {
auto &GetEventLoop() const noexcept {
return defer_invoke_handlers.GetEventLoop();
}

View File

@ -50,7 +50,7 @@ class CurlGlobal final {
public:
explicit CurlGlobal(EventLoop &_loop);
EventLoop &GetEventLoop() noexcept {
auto &GetEventLoop() const noexcept {
return timeout_event.GetEventLoop();
}

View File

@ -42,7 +42,7 @@ public:
DisconnectIndirect();
}
EventLoop &GetEventLoop() noexcept {
auto &GetEventLoop() const noexcept {
return watch.GetEventLoop();
}

View File

@ -102,7 +102,7 @@ public:
void Shutdown() noexcept;
EventLoop &GetEventLoop() noexcept {
auto &GetEventLoop() const noexcept {
return defer_dispatch.GetEventLoop();
}

View File

@ -161,9 +161,7 @@ public:
return export_name.c_str();
}
EventLoop &GetEventLoop() noexcept {
return SocketMonitor::GetEventLoop();
}
using SocketMonitor::GetEventLoop;
/**
* Ensure that the connection is established. The connection

View File

@ -69,7 +69,7 @@ public:
NfsFileReader() noexcept;
~NfsFileReader() noexcept;
EventLoop &GetEventLoop() noexcept {
auto &GetEventLoop() const noexcept {
return defer_open.GetEventLoop();
}

View File

@ -272,7 +272,7 @@ UPnPDeviceDirectory::~UPnPDeviceDirectory() noexcept
}
inline EventLoop &
UPnPDeviceDirectory::GetEventLoop() noexcept
UPnPDeviceDirectory::GetEventLoop() const noexcept
{
return curl->GetEventLoop();
}

View File

@ -168,7 +168,7 @@ public:
UPnPDeviceDirectory(const UPnPDeviceDirectory &) = delete;
UPnPDeviceDirectory& operator=(const UPnPDeviceDirectory &) = delete;
EventLoop &GetEventLoop() noexcept;
EventLoop &GetEventLoop() const noexcept;
void Start();

View File

@ -70,7 +70,7 @@ public:
NeighborListener &_listener) noexcept
:NeighborExplorer(_listener), event_loop(_event_loop) {}
auto &GetEventLoop() noexcept {
auto &GetEventLoop() const noexcept {
return event_loop;
}

View File

@ -129,7 +129,7 @@ public:
}
private:
EventLoop &GetEventLoop() noexcept {
EventLoop &GetEventLoop() const noexcept {
return defer_connect.GetEventLoop();
}

View File

@ -94,7 +94,7 @@ public:
}
}
EventLoop &GetEventLoop() noexcept {
EventLoop &GetEventLoop() const noexcept {
return defer_mount.GetEventLoop();
}