Przeglądaj źródła

add epoller class

tanghai 15 lat temu
rodzic
commit
94598514e1
2 zmienionych plików z 15 dodań i 0 usunięć
  1. 0 0
      src/net/epoller.cc
  2. 15 0
      src/net/epoller.h

+ 0 - 0
src/net/epoller.cc


+ 15 - 0
src/net/epoller.h

@@ -0,0 +1,15 @@
+// author: tanghai
+
+#include <boost/function.hpp>
+#include <boost/unordered_map.hpp>
+
+namespace hainan {
+typedef boost::unordered_map< int, boost::function<void (void)> > HandlerMap;
+class Epoller: private boost::noncopyable
+{
+private:
+	HandlerMap handlers;
+public:
+	void Add()
+};
+} // hainan