| 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 #ifndef VM_THREAD_INTERRUPTER_H_ | 5 #ifndef VM_THREAD_INTERRUPTER_H_ | 
| 6 #define VM_THREAD_INTERRUPTER_H_ | 6 #define VM_THREAD_INTERRUPTER_H_ | 
| 7 | 7 | 
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" | 
| 9 #include "vm/signal_handler.h" | 9 #include "vm/signal_handler.h" | 
| 10 #include "vm/os_thread.h" | 10 #include "vm/os_thread.h" | 
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 85 | 85 | 
| 86   static InterruptableThreadState* _EnsureThreadStateCreated(); | 86   static InterruptableThreadState* _EnsureThreadStateCreated(); | 
| 87   static void UpdateStateObject(ThreadInterruptCallback callback, void* data); | 87   static void UpdateStateObject(ThreadInterruptCallback callback, void* data); | 
| 88 | 88 | 
| 89   static void SetCurrentThreadState(InterruptableThreadState* state); | 89   static void SetCurrentThreadState(InterruptableThreadState* state); | 
| 90 | 90 | 
| 91   static void ThreadMain(uword parameters); | 91   static void ThreadMain(uword parameters); | 
| 92 | 92 | 
| 93   static void InstallSignalHandler(); | 93   static void InstallSignalHandler(); | 
| 94 | 94 | 
|  | 95   static void RemoveSignalHandler(); | 
|  | 96 | 
| 95   friend class ThreadInterrupterVisitIsolates; | 97   friend class ThreadInterrupterVisitIsolates; | 
| 96 }; | 98 }; | 
| 97 | 99 | 
| 98 void ThreadInterruptNoOp(const InterruptedThreadState& state, void* data); | 100 void ThreadInterruptNoOp(const InterruptedThreadState& state, void* data); | 
| 99 | 101 | 
| 100 }  // namespace dart | 102 }  // namespace dart | 
| 101 | 103 | 
| 102 #endif  // VM_THREAD_INTERRUPTER_H_ | 104 #endif  // VM_THREAD_INTERRUPTER_H_ | 
| OLD | NEW | 
|---|