system/EventFD: Get() returns FileDescriptor
This commit is contained in:
parent
cd4b673b6c
commit
17eae74c1c
@ -38,7 +38,11 @@ class WakeFD {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
SocketDescriptor GetSocket() const noexcept {
|
SocketDescriptor GetSocket() const noexcept {
|
||||||
|
#ifdef USE_EVENTFD
|
||||||
|
return SocketDescriptor::FromFileDescriptor(fd.Get());
|
||||||
|
#else
|
||||||
return SocketDescriptor(fd.Get());
|
return SocketDescriptor(fd.Get());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Read() noexcept {
|
bool Read() noexcept {
|
||||||
|
@ -44,8 +44,8 @@ public:
|
|||||||
*/
|
*/
|
||||||
EventFD();
|
EventFD();
|
||||||
|
|
||||||
int Get() const noexcept {
|
FileDescriptor Get() const noexcept {
|
||||||
return fd.Get();
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user