OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_POOL_H_ | 5 #ifndef RUNTIME_VM_THREAD_POOL_H_ |
6 #define VM_THREAD_POOL_H_ | 6 #define RUNTIME_VM_THREAD_POOL_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
10 #include "vm/os_thread.h" | 10 #include "vm/os_thread.h" |
11 | 11 |
12 namespace dart { | 12 namespace dart { |
13 | 13 |
14 class ThreadPool { | 14 class ThreadPool { |
15 public: | 15 public: |
16 // Subclasses of Task are able to run on a ThreadPool. | 16 // Subclasses of Task are able to run on a ThreadPool. |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 Monitor exit_monitor_; | 141 Monitor exit_monitor_; |
142 Worker* shutting_down_workers_; | 142 Worker* shutting_down_workers_; |
143 JoinList* join_list_; | 143 JoinList* join_list_; |
144 | 144 |
145 DISALLOW_COPY_AND_ASSIGN(ThreadPool); | 145 DISALLOW_COPY_AND_ASSIGN(ThreadPool); |
146 }; | 146 }; |
147 | 147 |
148 } // namespace dart | 148 } // namespace dart |
149 | 149 |
150 #endif // VM_THREAD_POOL_H_ | 150 #endif // RUNTIME_VM_THREAD_POOL_H_ |
OLD | NEW |