OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #if !defined(DART_IO_DISABLED) | 5 #if !defined(DART_IO_DISABLED) |
6 | 6 |
7 #include "platform/globals.h" | 7 #include "platform/globals.h" |
8 #if defined(HOST_OS_WINDOWS) | 8 #if defined(HOST_OS_WINDOWS) |
9 | 9 |
10 #include "bin/eventhandler.h" | 10 #include "bin/eventhandler.h" |
(...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1563 } | 1563 } |
1564 | 1564 |
1565 { | 1565 { |
1566 MonitorLocker ml(startup_monitor_); | 1566 MonitorLocker ml(startup_monitor_); |
1567 while (handler_thread_id_ == Thread::kInvalidThreadId) { | 1567 while (handler_thread_id_ == Thread::kInvalidThreadId) { |
1568 ml.Wait(); | 1568 ml.Wait(); |
1569 } | 1569 } |
1570 } | 1570 } |
1571 | 1571 |
1572 // Initialize Winsock32 | 1572 // Initialize Winsock32 |
1573 if (!Socket::Initialize()) { | 1573 if (!SocketBase::Initialize()) { |
1574 FATAL("Failed to initialized Windows sockets"); | 1574 FATAL("Failed to initialized Windows sockets"); |
1575 } | 1575 } |
1576 } | 1576 } |
1577 | 1577 |
1578 | 1578 |
1579 void EventHandlerImplementation::Shutdown() { | 1579 void EventHandlerImplementation::Shutdown() { |
1580 SendData(kShutdownId, 0, 0); | 1580 SendData(kShutdownId, 0, 0); |
1581 } | 1581 } |
1582 | 1582 |
1583 } // namespace bin | 1583 } // namespace bin |
1584 } // namespace dart | 1584 } // namespace dart |
1585 | 1585 |
1586 #endif // defined(HOST_OS_WINDOWS) | 1586 #endif // defined(HOST_OS_WINDOWS) |
1587 | 1587 |
1588 #endif // !defined(DART_IO_DISABLED) | 1588 #endif // !defined(DART_IO_DISABLED) |
OLD | NEW |