| 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 #include "platform/globals.h" | 5 #include "platform/globals.h" |
| 6 #if defined(TARGET_OS_ANDROID) | 6 #if defined(TARGET_OS_ANDROID) |
| 7 | 7 |
| 8 #include "vm/signal_handler.h" |
| 8 #include "vm/thread_interrupter.h" | 9 #include "vm/thread_interrupter.h" |
| 9 | 10 |
| 10 namespace dart { | 11 namespace dart { |
| 11 | 12 |
| 12 DECLARE_FLAG(bool, thread_interrupter); | 13 DECLARE_FLAG(bool, thread_interrupter); |
| 13 DECLARE_FLAG(bool, trace_thread_interrupter); | 14 DECLARE_FLAG(bool, trace_thread_interrupter); |
| 14 | 15 |
| 15 class ThreadInterrupterAndroid : public AllStatic { | 16 class ThreadInterrupterAndroid : public AllStatic { |
| 16 public: | 17 public: |
| 17 static void ThreadInterruptSignalHandler(int signal, siginfo_t* info, | 18 static void ThreadInterruptSignalHandler(int signal, siginfo_t* info, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 55 |
| 55 void ThreadInterrupter::InstallSignalHandler() { | 56 void ThreadInterrupter::InstallSignalHandler() { |
| 56 SignalHandler::Install( | 57 SignalHandler::Install( |
| 57 ThreadInterrupterAndroid::ThreadInterruptSignalHandler); | 58 ThreadInterrupterAndroid::ThreadInterruptSignalHandler); |
| 58 } | 59 } |
| 59 | 60 |
| 60 | 61 |
| 61 } // namespace dart | 62 } // namespace dart |
| 62 | 63 |
| 63 #endif // defined(TARGET_OS_ANDROID) | 64 #endif // defined(TARGET_OS_ANDROID) |
| OLD | NEW |