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 #include "vm/os.h" | 5 #include "vm/os.h" |
6 #include "vm/thread.h" | 6 #include "vm/lockers.h" |
7 #include "vm/thread_pool.h" | 7 #include "vm/thread_pool.h" |
8 #include "vm/unit_test.h" | 8 #include "vm/unit_test.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
11 | 11 |
12 DECLARE_FLAG(int, worker_timeout_millis); | 12 DECLARE_FLAG(int, worker_timeout_millis); |
13 | 13 |
14 | 14 |
15 class ThreadPoolTestPeer { | 15 class ThreadPoolTestPeer { |
16 public: | 16 public: |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 MonitorLocker ml(&sync); | 209 MonitorLocker ml(&sync); |
210 while (done < kTotalTasks) { | 210 while (done < kTotalTasks) { |
211 ml.Wait(); | 211 ml.Wait(); |
212 } | 212 } |
213 } | 213 } |
214 EXPECT_EQ(kTotalTasks, done); | 214 EXPECT_EQ(kTotalTasks, done); |
215 } | 215 } |
216 | 216 |
217 | 217 |
218 } // namespace dart | 218 } // namespace dart |
OLD | NEW |