| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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_THREAD_REGISTRY_H_ | 5 #ifndef RUNTIME_VM_THREAD_REGISTRY_H_ |
| 6 #define RUNTIME_VM_THREAD_REGISTRY_H_ | 6 #define RUNTIME_VM_THREAD_REGISTRY_H_ |
| 7 | 7 |
| 8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
| 9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
| 10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // on the same thread. | 72 // on the same thread. |
| 73 // We probably need a mechanism to return to the specific thread only | 73 // We probably need a mechanism to return to the specific thread only |
| 74 // for these specific cases. We should also determine if the embedder | 74 // for these specific cases. We should also determine if the embedder |
| 75 // should allow exiting an isolate with live state in zones/handles in | 75 // should allow exiting an isolate with live state in zones/handles in |
| 76 // which case a new API for returning to the specific thread needs to be | 76 // which case a new API for returning to the specific thread needs to be |
| 77 // added. | 77 // added. |
| 78 Thread* mutator_thread_; | 78 Thread* mutator_thread_; |
| 79 | 79 |
| 80 friend class Isolate; | 80 friend class Isolate; |
| 81 friend class SafepointHandler; | 81 friend class SafepointHandler; |
| 82 friend class Scavenger; |
| 82 DISALLOW_COPY_AND_ASSIGN(ThreadRegistry); | 83 DISALLOW_COPY_AND_ASSIGN(ThreadRegistry); |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 } // namespace dart | 86 } // namespace dart |
| 86 | 87 |
| 87 #endif // RUNTIME_VM_THREAD_REGISTRY_H_ | 88 #endif // RUNTIME_VM_THREAD_REGISTRY_H_ |
| OLD | NEW |