Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: runtime/vm/thread_pool_test.cc

Issue 463993002: - Separate the thread implementation used in bin/ and vm/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698