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

Side by Side Diff: include/libplatform/libplatform.h

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, 5 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
(Empty)
1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_LIBPLATFORM_LIBPLATFORM_H_
6 #define V8_LIBPLATFORM_LIBPLATFORM_H_
7
8 #include "include/v8-platform.h"
9
10 namespace v8 {
11 namespace platform {
12
13 /**
14 * Returns a new instance of the default v8::Platform implementation.
15 *
16 * The caller will take ownership of the returned pointer. |thread_pool_size|
17 * is the number of worker threads to allocate for background jobs. If a value
18 * of zero is passed, a suitable default based on the current number of
19 * processors online will be chosen.
20 */
21 v8::Platform* CreateDefaultPlatform(int thread_pool_size);
22
23
24 } // namespace platform
25 } // namespace v8
26
27 #endif // V8_LIBPLATFORM_LIBPLATFORM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698