io/FileDescriptor: fold CreateEventFD() into the EventFD constructor
This commit is contained in:
@@ -238,13 +238,6 @@ FileDescriptor::CheckDuplicate(FileDescriptor new_fd) const noexcept
|
||||
|
||||
#ifdef __linux__
|
||||
|
||||
bool
|
||||
FileDescriptor::CreateEventFD(unsigned initval) noexcept
|
||||
{
|
||||
fd = ::eventfd(initval, EFD_NONBLOCK|EFD_CLOEXEC);
|
||||
return fd >= 0;
|
||||
}
|
||||
|
||||
bool
|
||||
FileDescriptor::CreateSignalFD(const sigset_t *mask) noexcept
|
||||
{
|
||||
|
@@ -181,7 +181,6 @@ public:
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
bool CreateEventFD(unsigned initval=0) noexcept;
|
||||
bool CreateSignalFD(const sigset_t *mask) noexcept;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user