system/EventFD: Get() returns FileDescriptor

This commit is contained in:
Max Kellermann 2021-01-11 17:38:01 +01:00
parent cd4b673b6c
commit 17eae74c1c
2 changed files with 6 additions and 2 deletions

View File

@ -38,7 +38,11 @@ class WakeFD {
public:
SocketDescriptor GetSocket() const noexcept {
#ifdef USE_EVENTFD
return SocketDescriptor::FromFileDescriptor(fd.Get());
#else
return SocketDescriptor(fd.Get());
#endif
}
bool Read() noexcept {

View File

@ -44,8 +44,8 @@ public:
*/
EventFD();
int Get() const noexcept {
return fd.Get();
FileDescriptor Get() const noexcept {
return fd;
}
/**