event/WakeFD: convert macro to class with a GetSocket() method

This commit is contained in:
Max Kellermann
2021-01-11 17:00:54 +01:00
parent 0d606c743b
commit cd4b673b6c
2 changed files with 23 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ EventLoop::EventLoop(
#endif
{
#ifdef HAVE_THREADED_EVENT_LOOP
wake_event.Open(SocketDescriptor(wake_fd.Get()));
wake_event.Open(wake_fd.GetSocket());
#endif
}