aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/Loop.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-06 18:20:51 +0100
committerMax Kellermann <max@duempel.org>2013-11-06 19:05:45 +0100
commit154bdf0bca49f36f6ff8bc7f001634735ceb0b73 (patch)
treec9532d8726d34c12f2fb060873d8aef5ceb91e2b /src/event/Loop.hxx
parented436c6f0c5d3c3d8d4b89ffc74655c7b872f0c0 (diff)
downloadmpd-154bdf0bca49f36f6ff8bc7f001634735ceb0b73.tar.gz
mpd-154bdf0bca49f36f6ff8bc7f001634735ceb0b73.tar.xz
mpd-154bdf0bca49f36f6ff8bc7f001634735ceb0b73.zip
event/SocketMonitor: add method Abandon()
Diffstat (limited to 'src/event/Loop.hxx')
-rw-r--r--src/event/Loop.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/event/Loop.hxx b/src/event/Loop.hxx
index 859ce2733..62e733747 100644
--- a/src/event/Loop.hxx
+++ b/src/event/Loop.hxx
@@ -121,6 +121,13 @@ public:
return epoll.Modify(_fd, flags, &m);
}
+ /**
+ * Remove the given #SocketMonitor after the file descriptor
+ * has been closed. This is like RemoveFD(), but does not
+ * attempt to use #EPOLL_CTL_DEL.
+ */
+ void Abandon(SocketMonitor &m);
+
bool RemoveFD(int fd, SocketMonitor &m);
void AddIdle(IdleMonitor &i);