| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/process.h" | 10 #include "bin/process.h" |
| (...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 } | 952 } |
| 953 | 953 |
| 954 | 954 |
| 955 BOOL WINAPI SignalHandler(DWORD signal) { | 955 BOOL WINAPI SignalHandler(DWORD signal) { |
| 956 MutexLocker lock(signal_mutex); | 956 MutexLocker lock(signal_mutex); |
| 957 const SignalInfo* handler = signal_handlers; | 957 const SignalInfo* handler = signal_handlers; |
| 958 bool handled = false; | 958 bool handled = false; |
| 959 while (handler != NULL) { | 959 while (handler != NULL) { |
| 960 if (handler->signal() == signal) { | 960 if (handler->signal() == signal) { |
| 961 int value = 0; | 961 int value = 0; |
| 962 Socket::Write(handler->fd(), &value, 1); | 962 SocketBase::Write(handler->fd(), &value, 1); |
| 963 handled = true; | 963 handled = true; |
| 964 } | 964 } |
| 965 handler = handler->next(); | 965 handler = handler->next(); |
| 966 } | 966 } |
| 967 return handled; | 967 return handled; |
| 968 } | 968 } |
| 969 | 969 |
| 970 | 970 |
| 971 intptr_t GetWinSignal(intptr_t signal) { | 971 intptr_t GetWinSignal(intptr_t signal) { |
| 972 switch (signal) { | 972 switch (signal) { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1051 } | 1051 } |
| 1052 delete handler; | 1052 delete handler; |
| 1053 } | 1053 } |
| 1054 | 1054 |
| 1055 } // namespace bin | 1055 } // namespace bin |
| 1056 } // namespace dart | 1056 } // namespace dart |
| 1057 | 1057 |
| 1058 #endif // defined(HOST_OS_WINDOWS) | 1058 #endif // defined(HOST_OS_WINDOWS) |
| 1059 | 1059 |
| 1060 #endif // !defined(DART_IO_DISABLED) | 1060 #endif // !defined(DART_IO_DISABLED) |
| OLD | NEW |