summaryrefslogtreecommitdiff
path: root/src/socketengines/pipeengine_eventfd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socketengines/pipeengine_eventfd.cpp')
-rw-r--r--src/socketengines/pipeengine_eventfd.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/socketengines/pipeengine_eventfd.cpp b/src/socketengines/pipeengine_eventfd.cpp
deleted file mode 100644
index 61fddd0af..000000000
--- a/src/socketengines/pipeengine_eventfd.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- *
- * (C) 2003-2012 Anope Team
- * Contact us at team@anope.org
- *
- * Please read COPYING and README for further details.
- *
- * Based on the original code of Epona by Lara.
- * Based on the original code of Services by Andy Church.
- */
-
-#include "services.h"
-#include "sockets.h"
-
-#include <sys/eventfd.h>
-
-Pipe::Pipe() : Socket(eventfd(0, EFD_NONBLOCK))
-{
- if (this->sock < 0)
- throw CoreException("Could not create pipe: " + Anope::LastError());
-}
-
-Pipe::~Pipe()
-{
-}
-
-bool Pipe::ProcessRead()
-{
- eventfd_t dummy;
- eventfd_read(this->GetFD(), &dummy);
- this->OnNotify();
- return true;
-}
-
-void Pipe::Notify()
-{
- eventfd_write(this->GetFD(), 1);
-}
-