diff options
author | Max Kellermann <max@musicpd.org> | 2018-08-22 15:31:19 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-08-22 15:40:45 +0200 |
commit | dd461400fb5c759dc32c063254cf3154f6fb5b9d (patch) | |
tree | ec0edb3f8bbdff37642b14a456351f4e64d1c486 /src/system | |
parent | b1390ec27fdbf35ab53a50eedf0fd63b8ea55e1b (diff) |
system/EPollFD: rename to EpollFD
Diffstat (limited to 'src/system')
-rw-r--r-- | src/system/EpollFD.cxx (renamed from src/system/EPollFD.cxx) | 4 | ||||
-rw-r--r-- | src/system/EpollFD.hxx (renamed from src/system/EPollFD.hxx) | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/system/EPollFD.cxx b/src/system/EpollFD.cxx index a119ab05e..bd05008b2 100644 --- a/src/system/EPollFD.cxx +++ b/src/system/EpollFD.cxx @@ -19,10 +19,10 @@ #include "config.h" #ifdef USE_EPOLL -#include "EPollFD.hxx" +#include "EpollFD.hxx" #include "Error.hxx" -EPollFD::EPollFD() +EpollFD::EpollFD() :fd(::epoll_create1(EPOLL_CLOEXEC)) { if (fd < 0) diff --git a/src/system/EPollFD.hxx b/src/system/EpollFD.hxx index caa5ac4ae..e355b3ca9 100644 --- a/src/system/EPollFD.hxx +++ b/src/system/EpollFD.hxx @@ -32,23 +32,23 @@ struct epoll_event; /** * A class that wraps Linux epoll. */ -class EPollFD { +class EpollFD { const int fd; public: /** * Throws on error. */ - EPollFD(); + EpollFD(); - ~EPollFD() noexcept { + ~EpollFD() noexcept { assert(fd >= 0); ::close(fd); } - EPollFD(const EPollFD &other) = delete; - EPollFD &operator=(const EPollFD &other) = delete; + EpollFD(const EpollFD &other) = delete; + EpollFD &operator=(const EpollFD &other) = delete; int Wait(epoll_event *events, int maxevents, int timeout) noexcept { return ::epoll_wait(fd, events, maxevents, timeout); |