Files
sdk/runtime/bin/thread_pool_test.cc
T
sgjesse@google.com a6071e0880 Thread pool changes
Make one global thread pool instead of a thread pool for each
eventhandler (i.e. isolate).

Also:

* Added handler function for thread pool tasks.
* Added thread pool shutdown.
* Added a simple test.

R=ager@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//9112013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3079 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-09 07:38:30 +00:00

20 lines
523 B
C++

// Copyright (c) 2011, 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.
#include "bin/thread_pool.h"
// TODO(sgjesse): Get rid of these #undefs
#undef FATAL
#undef ASSERT
#include "vm/assert.h"
#include "platform/globals.h"
#include "vm/unit_test.h"
UNIT_TEST_CASE(ThreadPoolStartStop) {
ThreadPool thread_pool(NULL, 10);
thread_pool.Start();
thread_pool.Shutdown();
}