electron/common/node_bindings_win.cc
Cheng Zhao 2f9c30dd50 [Win] Simply poll events for every 50ms.
This only makes async functions half work, will use IOCP for the
polling.
2013-07-22 16:43:58 +08:00

31 lines
655 B
C++

// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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"
namespace atom {
NodeBindingsWin::NodeBindingsWin(bool is_browser)
: NodeBindings(is_browser) {
}
NodeBindingsWin::~NodeBindingsWin() {
}
void NodeBindingsWin::PollEvents() {
Sleep(50);
}
// static
NodeBindings* NodeBindings::Create(bool is_browser) {
return new NodeBindingsWin(is_browser);
}
} // namespace atom