mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user