| 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 VM_THREAD_POOL_H_ |
| 6 #define VM_THREAD_POOL_H_ | 6 #define VM_THREAD_POOL_H_ |
| 7 | 7 |
| 8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
| 9 #include "vm/thread.h" | 9 #include "vm/os_thread.h" |
| 10 | 10 |
| 11 namespace dart { | 11 namespace dart { |
| 12 | 12 |
| 13 class ThreadPool { | 13 class ThreadPool { |
| 14 public: | 14 public: |
| 15 // Subclasses of Task are able to run on a ThreadPool. | 15 // Subclasses of Task are able to run on a ThreadPool. |
| 16 class Task { | 16 class Task { |
| 17 protected: | 17 protected: |
| 18 Task(); | 18 Task(); |
| 19 | 19 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 static Monitor* exit_monitor_; // Used only in testing. | 108 static Monitor* exit_monitor_; // Used only in testing. |
| 109 static int* exit_count_; // Used only in testing. | 109 static int* exit_count_; // Used only in testing. |
| 110 | 110 |
| 111 DISALLOW_COPY_AND_ASSIGN(ThreadPool); | 111 DISALLOW_COPY_AND_ASSIGN(ThreadPool); |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace dart | 114 } // namespace dart |
| 115 | 115 |
| 116 #endif // VM_THREAD_POOL_H_ | 116 #endif // VM_THREAD_POOL_H_ |
| OLD | NEW |