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

Unified Diff: src/libplatform/default-platform.cc

Issue 345903004: Split out libplatform into a separate libary (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« samples/process.cc ('K') | « src/d8.gyp ('k') | src/mksnapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/libplatform/default-platform.cc
diff --git a/src/libplatform/default-platform.cc b/src/libplatform/default-platform.cc
index 2d346825722d8acd654c79d80a83c0ac5ccb820e..9a2c30dcdefa769913205aac21ab68352efaf8e9 100644
--- a/src/libplatform/default-platform.cc
+++ b/src/libplatform/default-platform.cc
@@ -15,6 +15,14 @@ namespace v8 {
namespace platform {
+v8::Platform* CreateDefaultPlatform(int thread_pool_size) {
+ DefaultPlatform* platform = new DefaultPlatform();
+ platform->SetThreadPoolSize(thread_pool_size);
+ platform->EnsureInitialized();
+ return platform;
+}
+
+
const int DefaultPlatform::kMaxThreadPoolSize = 4;
« samples/process.cc ('K') | « src/d8.gyp ('k') | src/mksnapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698