[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:
parent
7ad8c3b569
commit
2f9c30dd50
1 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,9 @@
|
||||||
|
|
||||||
#include "common/node_bindings_win.h"
|
#include "common/node_bindings_win.h"
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
|
#include "base/logging.h"
|
||||||
#include "vendor/node/src/node.h"
|
#include "vendor/node/src/node.h"
|
||||||
#include "vendor/node/src/node_internals.h"
|
#include "vendor/node/src/node_internals.h"
|
||||||
|
|
||||||
|
@ -17,6 +20,7 @@ NodeBindingsWin::~NodeBindingsWin() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NodeBindingsWin::PollEvents() {
|
void NodeBindingsWin::PollEvents() {
|
||||||
|
Sleep(50);
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue