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_H_ | 5 #ifndef RUNTIME_VM_THREAD_H_ |
6 #define RUNTIME_VM_THREAD_H_ | 6 #define RUNTIME_VM_THREAD_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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 friend class IsolateTestHelper; | 800 friend class IsolateTestHelper; |
801 friend class NoOOBMessageScope; | 801 friend class NoOOBMessageScope; |
802 friend class Simulator; | 802 friend class Simulator; |
803 friend class StackZone; | 803 friend class StackZone; |
804 friend class ThreadRegistry; | 804 friend class ThreadRegistry; |
805 | 805 |
806 DISALLOW_COPY_AND_ASSIGN(Thread); | 806 DISALLOW_COPY_AND_ASSIGN(Thread); |
807 }; | 807 }; |
808 | 808 |
809 | 809 |
810 #if defined(TARGET_OS_WINDOWS) | 810 #if defined(HOST_OS_WINDOWS) |
811 // Clears the state of the current thread and frees the allocation. | 811 // Clears the state of the current thread and frees the allocation. |
812 void WindowsThreadCleanUp(); | 812 void WindowsThreadCleanUp(); |
813 #endif | 813 #endif |
814 | 814 |
815 | 815 |
816 // Disable thread interrupts. | 816 // Disable thread interrupts. |
817 class DisableThreadInterruptsScope : public StackResource { | 817 class DisableThreadInterruptsScope : public StackResource { |
818 public: | 818 public: |
819 explicit DisableThreadInterruptsScope(Thread* thread); | 819 explicit DisableThreadInterruptsScope(Thread* thread); |
820 ~DisableThreadInterruptsScope(); | 820 ~DisableThreadInterruptsScope(); |
821 }; | 821 }; |
822 | 822 |
823 } // namespace dart | 823 } // namespace dart |
824 | 824 |
825 #endif // RUNTIME_VM_THREAD_H_ | 825 #endif // RUNTIME_VM_THREAD_H_ |
OLD | NEW |