فهرست منبع

add epoller class

tanghai 15 سال پیش
والد
کامیت
94598514e1
2فایلهای تغییر یافته به همراه15 افزوده شده و 0 حذف شده
  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