Chromium Code Reviews| Index: runtime/bin/eventhandler_linux.cc |
| diff --git a/runtime/bin/eventhandler_linux.cc b/runtime/bin/eventhandler_linux.cc |
| index 478983533c10a2d123b6cb1795db90dfe8709596..4f3276d44e8b39116e557c32071b7e39705926f6 100644 |
| --- a/runtime/bin/eventhandler_linux.cc |
| +++ b/runtime/bin/eventhandler_linux.cc |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| @@ -370,6 +370,13 @@ void EventHandlerImplementation::StartEventHandler() { |
| if (result != 0) { |
| FATAL("Create start event handler thread"); |
| } |
| + |
| + if (Dart_IsVMFlagSet("enable_thread_pool")) { |
| + thread_pool.Start(); |
| + for (int i = 0; i < 100; i++) { |
|
Ivan Posva
2012/01/04 17:26:34
This is non-sensical. Please make this into a prop
|
| + thread_pool.InsertTask(i); |
| + } |
| + } |
| } |