event/MultiSocketMonitor: make ctor protected and explicit

This commit is contained in:
Max Kellermann 2024-07-11 21:05:01 +02:00
parent 951f916440
commit 23a3278b4e
1 changed files with 3 additions and 2 deletions

View File

@ -110,9 +110,10 @@ class MultiSocketMonitor
std::forward_list<AlwaysReady> always_ready_fds; std::forward_list<AlwaysReady> always_ready_fds;
#endif #endif
public: protected:
MultiSocketMonitor(EventLoop &_loop) noexcept; explicit MultiSocketMonitor(EventLoop &_loop) noexcept;
public:
EventLoop &GetEventLoop() const noexcept { EventLoop &GetEventLoop() const noexcept {
return idle_event.GetEventLoop(); return idle_event.GetEventLoop();
} }