projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ad8c3b
)
[Win] Simply poll events for every 50ms.
author
Cheng Zhao
<zcbenz@gmail.com>
Mon, 22 Jul 2013 08:43:58 +0000
(16:43 +0800)
committer
Cheng 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
patch
|
blob
|
history
diff --git
a/common/node_bindings_win.cc
b/common/node_bindings_win.cc
index
b0eec1b
..
6cfa12c
100644
(file)
--- a/
common/node_bindings_win.cc
+++ b/
common/node_bindings_win.cc
@@
-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