[Win] Simply poll events for every 50ms.

This only makes async functions half work, will use IOCP for the
polling.
This commit is contained in:
Cheng Zhao 2013-07-22 16:43:58 +08:00
parent 7ad8c3b569
commit 2f9c30dd50

View 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