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

Side by Side Diff: runtime/vm/thread_interrupter.h

Issue 1061033005: Remove profiler signal handler on shutdown (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | Annotate | Revision Log
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 #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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698