| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_V8THREADS_H_ | 5 #ifndef V8_V8THREADS_H_ |
| 6 #define V8_V8THREADS_H_ | 6 #define V8_V8THREADS_H_ |
| 7 | 7 |
| 8 #include "src/isolate.h" |
| 9 |
| 8 namespace v8 { | 10 namespace v8 { |
| 9 namespace internal { | 11 namespace internal { |
| 10 | 12 |
| 11 | 13 |
| 12 class ThreadState { | 14 class ThreadState { |
| 13 public: | 15 public: |
| 14 // Returns NULL after the last one. | 16 // Returns NULL after the last one. |
| 15 ThreadState* Next(); | 17 ThreadState* Next(); |
| 16 | 18 |
| 17 enum List {FREE_LIST, IN_USE_LIST}; | 19 enum List {FREE_LIST, IN_USE_LIST}; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 Isolate* isolate_; | 114 Isolate* isolate_; |
| 113 | 115 |
| 114 friend class Isolate; | 116 friend class Isolate; |
| 115 friend class ThreadState; | 117 friend class ThreadState; |
| 116 }; | 118 }; |
| 117 | 119 |
| 118 | 120 |
| 119 } } // namespace v8::internal | 121 } } // namespace v8::internal |
| 120 | 122 |
| 121 #endif // V8_V8THREADS_H_ | 123 #endif // V8_V8THREADS_H_ |
| OLD | NEW |