Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: runtime/bin/eventhandler_win.cc

Issue 2797993005: Re-land socket refactor with fixes for Windows. (Closed)
Patch Set: Rebased + reverted original revert Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/bin/file_system_watcher_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/file_system_watcher_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698