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 RUNTIME_VM_ISOLATE_H_ | 5 #ifndef RUNTIME_VM_ISOLATE_H_ |
6 #define RUNTIME_VM_ISOLATE_H_ | 6 #define RUNTIME_VM_ISOLATE_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "vm/atomic.h" | 10 #include "vm/atomic.h" |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 } | 211 } |
212 void set_message_notify_callback(Dart_MessageNotifyCallback value) { | 212 void set_message_notify_callback(Dart_MessageNotifyCallback value) { |
213 message_notify_callback_ = value; | 213 message_notify_callback_ = value; |
214 } | 214 } |
215 | 215 |
216 Thread* mutator_thread() const; | 216 Thread* mutator_thread() const; |
217 | 217 |
218 // Mutator thread is not scheduled if NULL or no heap is attached | 218 // Mutator thread is not scheduled if NULL or no heap is attached |
219 // to it. The latter only occurs when the mutator thread object | 219 // to it. The latter only occurs when the mutator thread object |
220 // is unscheduled by the isolate (or never scheduled). | 220 // is unscheduled by the isolate (or never scheduled). |
221 bool IsMutatorThreadScheduled() { | 221 bool IsMutatorThreadScheduled() { return scheduled_mutator_thread_ != NULL; } |
222 return mutator_thread_ != NULL && mutator_thread_->heap() != NULL; | |
223 } | |
224 | 222 |
225 const char* name() const { return name_; } | 223 const char* name() const { return name_; } |
226 | 224 |
227 #if !defined(PRODUCT) | 225 #if !defined(PRODUCT) |
228 const char* debugger_name() const { return debugger_name_; } | 226 const char* debugger_name() const { return debugger_name_; } |
229 void set_debugger_name(const char* name); | 227 void set_debugger_name(const char* name); |
230 #endif // !defined(PRODUCT) | 228 #endif // !defined(PRODUCT) |
231 | 229 |
232 int64_t UptimeMicros() const; | 230 int64_t UptimeMicros() const; |
233 | 231 |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 intptr_t* spawn_count_; | 1059 intptr_t* spawn_count_; |
1062 | 1060 |
1063 Dart_IsolateFlags isolate_flags_; | 1061 Dart_IsolateFlags isolate_flags_; |
1064 bool paused_; | 1062 bool paused_; |
1065 bool errors_are_fatal_; | 1063 bool errors_are_fatal_; |
1066 }; | 1064 }; |
1067 | 1065 |
1068 } // namespace dart | 1066 } // namespace dart |
1069 | 1067 |
1070 #endif // RUNTIME_VM_ISOLATE_H_ | 1068 #endif // RUNTIME_VM_ISOLATE_H_ |
OLD | NEW |