[Win] Simply poll events for every 50ms.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 22 Jul 2013 08:43:58 +0000 (16:43 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 22 Jul 2013 08:43:58 +0000 (16:43 +0800)
This only makes async functions half work, will use IOCP for the
polling.

common/node_bindings_win.cc

index b0eec1b..6cfa12c 100644 (file)
@@ -4,6 +4,9 @@
 
 #include "common/node_bindings_win.h"
 
+#include <windows.h>
+
+#include "base/logging.h"
 #include "vendor/node/src/node.h"
 #include "vendor/node/src/node_internals.h"
 
@@ -17,6 +20,7 @@ NodeBindingsWin::~NodeBindingsWin() {
 }
 
 void NodeBindingsWin::PollEvents() {
+  Sleep(50);
 }
 
 // static