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 VM_THREAD_H_ | 5 #ifndef VM_THREAD_H_ |
6 #define VM_THREAD_H_ | 6 #define VM_THREAD_H_ |
7 | 7 |
8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
9 #include "vm/os_thread.h" | 9 #include "vm/os_thread.h" |
10 #include "vm/store_buffer.h" | 10 #include "vm/store_buffer.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 } | 255 } |
256 | 256 |
257 static void SetCurrent(Thread* current); | 257 static void SetCurrent(Thread* current); |
258 | 258 |
259 void Schedule(Isolate* isolate); | 259 void Schedule(Isolate* isolate); |
260 void Unschedule(); | 260 void Unschedule(); |
261 | 261 |
262 friend class ApiZone; | 262 friend class ApiZone; |
263 friend class Isolate; | 263 friend class Isolate; |
264 friend class StackZone; | 264 friend class StackZone; |
| 265 friend class ThreadRegistry; |
265 DISALLOW_COPY_AND_ASSIGN(Thread); | 266 DISALLOW_COPY_AND_ASSIGN(Thread); |
266 }; | 267 }; |
267 | 268 |
268 } // namespace dart | 269 } // namespace dart |
269 | 270 |
270 #endif // VM_THREAD_H_ | 271 #endif // VM_THREAD_H_ |
OLD | NEW |