| 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/handles.h" | 9 #include "vm/handles.h" |
| 10 #include "vm/os_thread.h" | 10 #include "vm/os_thread.h" |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 void Schedule(Isolate* isolate, bool bypass_safepoint = false); | 494 void Schedule(Isolate* isolate, bool bypass_safepoint = false); |
| 495 void Unschedule(bool bypass_safepoint = false); | 495 void Unschedule(bool bypass_safepoint = false); |
| 496 | 496 |
| 497 #define REUSABLE_FRIEND_DECLARATION(name) \ | 497 #define REUSABLE_FRIEND_DECLARATION(name) \ |
| 498 friend class Reusable##name##HandleScope; | 498 friend class Reusable##name##HandleScope; |
| 499 REUSABLE_HANDLE_LIST(REUSABLE_FRIEND_DECLARATION) | 499 REUSABLE_HANDLE_LIST(REUSABLE_FRIEND_DECLARATION) |
| 500 #undef REUSABLE_FRIEND_DECLARATION | 500 #undef REUSABLE_FRIEND_DECLARATION |
| 501 | 501 |
| 502 friend class ApiZone; | 502 friend class ApiZone; |
| 503 friend class Isolate; | 503 friend class Isolate; |
| 504 friend class Simulator; |
| 504 friend class StackZone; | 505 friend class StackZone; |
| 505 friend class ThreadIterator; | 506 friend class ThreadIterator; |
| 506 friend class ThreadIteratorTestHelper; | 507 friend class ThreadIteratorTestHelper; |
| 507 friend class ThreadRegistry; | 508 friend class ThreadRegistry; |
| 508 | 509 |
| 509 DISALLOW_COPY_AND_ASSIGN(Thread); | 510 DISALLOW_COPY_AND_ASSIGN(Thread); |
| 510 }; | 511 }; |
| 511 | 512 |
| 512 | 513 |
| 513 // Note that this takes the thread list lock, prohibiting threads from coming | 514 // Note that this takes the thread list lock, prohibiting threads from coming |
| (...skipping 14 matching lines...) Expand all Loading... |
| 528 }; | 529 }; |
| 529 | 530 |
| 530 #if defined(TARGET_OS_WINDOWS) | 531 #if defined(TARGET_OS_WINDOWS) |
| 531 // Clears the state of the current thread and frees the allocation. | 532 // Clears the state of the current thread and frees the allocation. |
| 532 void WindowsThreadCleanUp(); | 533 void WindowsThreadCleanUp(); |
| 533 #endif | 534 #endif |
| 534 | 535 |
| 535 } // namespace dart | 536 } // namespace dart |
| 536 | 537 |
| 537 #endif // VM_THREAD_H_ | 538 #endif // VM_THREAD_H_ |
| OLD | NEW |